diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-09-19 08:32:13 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-09-19 08:32:13 -0400 |
commit | f00557d6b90f6ebdb99b21dd281068701961b30c (patch) | |
tree | c5d003544a18a397c47b6c32e6d9721886cd81ea /gitsrht/app.py | |
parent | d01d4b9264576e5409899558152089c4dc1cbf2b (diff) |
Break ground on the API
Diffstat (limited to 'gitsrht/app.py')
-rw-r--r-- | gitsrht/app.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gitsrht/app.py b/gitsrht/app.py index 84a9270..64a988d 100644 --- a/gitsrht/app.py +++ b/gitsrht/app.py @@ -15,6 +15,7 @@ app = SrhtFlask("git", __name__) app.secret_key = cfg("server", "secret-key") login_manager = LoginManager() login_manager.init_app(app) +import gitsrht.oauth @login_manager.user_loader def load_user(username): @@ -37,10 +38,12 @@ def oauth_url(return_to): "," + builds_sr_ht + "/jobs:write" if builds_sr_ht else "", urllib.parse.quote_plus(return_to)) +from gitsrht.blueprints.api import api from gitsrht.blueprints.auth import auth from gitsrht.blueprints.public import public from gitsrht.blueprints.manage import manage +app.register_blueprint(api) app.register_blueprint(auth) app.register_blueprint(public) app.register_blueprint(manage) |