basic structure

This commit is contained in:
Thomas Rubini 2022-11-17 16:07:13 +01:00
parent e6f29188eb
commit 1fa7e43bbe
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373
3 changed files with 21 additions and 0 deletions

4
app.py Normal file
View File

@ -0,0 +1,4 @@
from truthseeker import app # the variable 'app' is detected by `flask run`
if __name__ == "__main__":
app.run()

11
truthseeker/__init__.py Normal file
View File

@ -0,0 +1,11 @@
import flask
from truthseeker import api
app = flask.Flask("truthseeker")
app.register_blueprint(api.api_routes, url_prefix="/api/v1")
@app.route("/")
def hello():
return "Hello World!"

6
truthseeker/api.py Normal file
View File

@ -0,0 +1,6 @@
import flask
api_routes = flask.Blueprint("api", __name__)
@api_routes.route("/newGame")
def hello():
return "Created new game"