diff options
author | romangraef <roman.graef@gmail.com> | 2018-06-09 12:28:18 +0200 |
---|---|---|
committer | romangraef <roman.graef@gmail.com> | 2018-06-09 12:28:18 +0200 |
commit | bb27efebb9ebb30e85e780758d259bcb72a699c4 (patch) | |
tree | fdeb8218f46c78ffd3800640308d4753f287af42 /app.py | |
download | datapackmanagerapi-bb27efebb9ebb30e85e780758d259bcb72a699c4.tar.gz datapackmanagerapi-bb27efebb9ebb30e85e780758d259bcb72a699c4.tar.bz2 datapackmanagerapi-bb27efebb9ebb30e85e780758d259bcb72a699c4.zip |
Initial commit
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +from flask import Flask, abort + +from api import bp as api_blueprint + +app = Flask(__name__) + + +@app.route('/') +def index(): + abort(404) + + +app.register_blueprint(api_blueprint, url_prefix='/api') + +if __name__ == '__main__': + app.run() |