summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
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()