diff options
| author | BonfaceKilz | 2021-02-16 16:20:27 +0300 |
|---|---|---|
| committer | BonfaceKilz | 2021-02-16 16:22:11 +0300 |
| commit | 3dee528d7cbcf511b451dfc00c922931f92ee5a7 (patch) | |
| tree | e1d5c5f8f4dffc28938e49aa71453da2c7c7cd6d | |
| parent | ec0f9f611796ab67ce816d07f807701cb688cbeb (diff) | |
| download | genenetwork3-3dee528d7cbcf511b451dfc00c922931f92ee5a7.tar.gz | |
Register gemma blueprints
| -rw-r--r-- | main.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/main.py b/main.py index 33d3882..8b2fa73 100644 --- a/main.py +++ b/main.py @@ -1,14 +1,9 @@ """Main entry point for project""" -from flask import Flask -app = Flask(__name__) +from gn3.app import create_app +from gn3.api.gemma import gemma -@app.route("/") -def hello(): - """Test hello world""" - return "Hello World!" - - -if __name__ == '__main__': - app.run() +app = create_app() +app.register_blueprint(gemma, url_prefix="/gemma") +app.run(host="0.0.0.0") |
