summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorromangraef <roman.graef@gmail.com>2018-06-09 12:28:18 +0200
committerromangraef <roman.graef@gmail.com>2018-06-09 12:28:18 +0200
commitbb27efebb9ebb30e85e780758d259bcb72a699c4 (patch)
treefdeb8218f46c78ffd3800640308d4753f287af42 /app.py
downloaddatapackmanagerapi-bb27efebb9ebb30e85e780758d259bcb72a699c4.tar.gz
datapackmanagerapi-bb27efebb9ebb30e85e780758d259bcb72a699c4.tar.bz2
datapackmanagerapi-bb27efebb9ebb30e85e780758d259bcb72a699c4.zip
Initial commit
Diffstat (limited to 'app.py')
-rw-r--r--app.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/app.py b/app.py
new file mode 100644
index 0000000..75f2211
--- /dev/null
+++ b/app.py
@@ -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()