Feat(Docker): Containerized the application
This commit is contained in:
12
backend/src/backend/blueprints/serving.py
Normal file
12
backend/src/backend/blueprints/serving.py
Normal 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")
|
@@ -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
|
||||
|
Reference in New Issue
Block a user