Adding base of loginning
This commit is contained in:
parent
707a5c41cd
commit
addfa54b38
4
app.py
4
app.py
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import connexion
|
import connexion
|
||||||
|
from flask_login import LoginManager
|
||||||
|
|
||||||
app = connexion.App(__name__, specification_dir='./swagger/')
|
app = connexion.App(__name__, specification_dir='./swagger/')
|
||||||
app.add_api('swagger.yaml',
|
app.add_api('swagger.yaml',
|
||||||
@ -8,5 +9,8 @@ app.add_api('swagger.yaml',
|
|||||||
'title': 'Rubber Duck Booking Tool'
|
'title': 'Rubber Duck Booking Tool'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
login_manager = LoginManager()
|
||||||
|
#login_manager.init_app(app)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(port=8080)
|
app.run(port=8080)
|
||||||
|
@ -2,3 +2,4 @@ Flask==0.11.1
|
|||||||
Flask-RESTful==0.3.5
|
Flask-RESTful==0.3.5
|
||||||
connexion==1.0.129
|
connexion==1.0.129
|
||||||
gunicorn
|
gunicorn
|
||||||
|
flask-login
|
||||||
|
Loading…
Reference in New Issue
Block a user