This commit is contained in:
10
services/game/app/__init__.py
Normal file
10
services/game/app/__init__.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from flask import Flask
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def hello_world():
|
||||
return "Hello, World!"
|
||||
|
||||
return app
|
||||
4
services/game/app/config.py
Normal file
4
services/game/app/config.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import os
|
||||
|
||||
class Config:
|
||||
SECRET_KEY = os.environ.get("SECRET_KEY", "default_secret_key")
|
||||
3
services/game/app/main.py
Normal file
3
services/game/app/main.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from . import create_app
|
||||
|
||||
app = create_app()
|
||||
Reference in New Issue
Block a user