diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-05 23:33:50 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-05 23:33:50 +0100 |
| commit | f6e6b1edbbb68bf6bf93a10deebd4cd55ffaff0f (patch) | |
| tree | bb44de81746cfd088bfab49247b9ec8508bb4605 /animism-align/cli/app/server/web.py | |
| parent | 6726fa9fe050aa47ff7f537b91705372e290f501 (diff) | |
use other login validator thingie
Diffstat (limited to 'animism-align/cli/app/server/web.py')
| -rw-r--r-- | animism-align/cli/app/server/web.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/animism-align/cli/app/server/web.py b/animism-align/cli/app/server/web.py index 3f2136a..af0c2d9 100644 --- a/animism-align/cli/app/server/web.py +++ b/animism-align/cli/app/server/web.py @@ -25,6 +25,7 @@ from app.controllers.media_controller import MediaView from app.controllers.episode_controller import EpisodeView from app.controllers.venue_controller import VenueView from app.controllers.user_controller import UserView +from app.controllers.auth_controller import AuthView def create_app(script_info=None): """ @@ -36,7 +37,7 @@ def create_app(script_info=None): app.config['SQLALCHEMY_DATABASE_URI'] = connection_url app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SERVER_NAME'] = app_cfg.SERVER_NAME - app.config['SECRET_KEY'] = app_cfg.TOKEN_SECRET + app.config['JWT_SECRET_KEY'] = app_cfg.TOKEN_SECRET app.config['JWT_AUTH_URL_RULE'] = '/api/v1/auth/login' # app.config['JWT_VERIFY_EXPIRATION'] = False app.config['EXPIRATION_DELTA'] = timedelta(days=365 * 10) @@ -52,6 +53,7 @@ def create_app(script_info=None): EpisodeView.register(app, route_prefix='/api/v1/') VenueView.register(app, route_prefix='/api/v1/') UserView.register(app, route_prefix='/api/v1/') + AuthView.register(app, route_prefix='/api/v1/') index_html = 'index.html' |
