|
@ -2,7 +2,7 @@ |
|
|
import lilikusers |
|
|
import lilikusers |
|
|
import json |
|
|
import json |
|
|
from flask import Flask, jsonify |
|
|
from flask import Flask, jsonify |
|
|
from flask import request, Response |
|
|
|
|
|
|
|
|
from flask import request, Response, redirect, url_for |
|
|
from functools import wraps |
|
|
from functools import wraps |
|
|
|
|
|
|
|
|
app = Flask(__name__) |
|
|
app = Flask(__name__) |
|
@ -96,5 +96,9 @@ def new_user(user): |
|
|
print(lilik_ldap.new_user(new_lilik_user)) |
|
|
print(lilik_ldap.new_user(new_lilik_user)) |
|
|
return jsonify(lilik_ldap.get_user(new_lilik_user['uid']).to_dict()) |
|
|
return jsonify(lilik_ldap.get_user(new_lilik_user['uid']).to_dict()) |
|
|
|
|
|
|
|
|
|
|
|
@app.route('/') |
|
|
|
|
|
def home(): |
|
|
|
|
|
return redirect(url_for('static', filename='index.html')) |
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
if __name__ == '__main__': |
|
|
app.run(debug=True) |
|
|
app.run(debug=True) |