|
|
@ -2,7 +2,7 @@ |
|
|
|
import lilikusers |
|
|
|
import json |
|
|
|
from flask import Flask, jsonify |
|
|
|
from flask import request, Response |
|
|
|
from flask import request, Response, redirect, url_for |
|
|
|
from functools import wraps |
|
|
|
|
|
|
|
app = Flask(__name__) |
|
|
@ -96,5 +96,9 @@ def new_user(user): |
|
|
|
print(lilik_ldap.new_user(new_lilik_user)) |
|
|
|
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__': |
|
|
|
app.run(debug=True) |