Middelware update and footer content
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 39s

This commit is contained in:
2024-12-20 22:35:39 +01:00
parent 18181d7ce8
commit d58e5b0d12
10 changed files with 192 additions and 32 deletions

View File

@@ -1,6 +1,8 @@
from fastapi import FastAPI
from contextlib import asynccontextmanager
from fastapi.staticfiles import StaticFiles
from app.controllers.route_to_web import RouteToWeb
from app.services.markdown_processor import MarkdownProcessor
from app.services.metadata_processor import MetadataProcessor
from app.controllers.dynamic_controller import DynamicController
@@ -38,11 +40,13 @@ class Application:
def _include_routers(self):
"""Include all route controllers."""
category_controller = CategoryController()
dynamic_controller = DynamicController( "./data" )
#dynamic_controller = DynamicController( "./data" )
route_to_web = RouteToWeb(self.app)
self.app.include_router( category_controller.router )
self.app.include_router( dynamic_controller.router )
#self.app.include_router( dynamic_controller.router )
self.app.include_router(route_to_web.router)