Feat(Docker): Containerized the application

This commit is contained in:
2023-11-01 23:48:43 -04:00
parent 3a907399bd
commit 181dfb06a2
6 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
from quart import Blueprint, render_template, ResponseReturnValue
from quart_rate_limiter import rate_exempt
blueprint = Blueprint("serving", __name__)
@blueprint.get("/")
@blueprint.get("/<path:path>")
@rate_exempt
async def index(path: str | None = None) -> ResponseReturnValue:
return await render_template("index.html")

View File

@@ -23,6 +23,7 @@ from backend.blueprints.control import blueprint as control_blueprint
from backend.blueprints.members import blueprint as members_blueprint
from backend.blueprints.sessions import blueprint as sessions_blueprint
from backend.blueprints.todos import blueprint as todos_blueprint
from backend.blueprints.serving import blueprint as serving_blueprint
# For making sure error responses are in JSON format
from backend.lib.api_error import APIError
@@ -48,6 +49,7 @@ app.register_blueprint(control_blueprint)
app.register_blueprint(sessions_blueprint)
app.register_blueprint(members_blueprint)
app.register_blueprint(todos_blueprint)
app.register_blueprint(serving_blueprint)
# Rate limiting