Lets see what lighthouse says
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Has been cancelled

This commit is contained in:
2024-12-21 23:33:49 +01:00
parent 3026972dee
commit bde441326b
8 changed files with 88 additions and 10 deletions

View File

@@ -5,9 +5,9 @@ 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
from app.controllers.category_controller import CategoryController
from fastapi.middleware.gzip import GZipMiddleware
from app.services.image_controller import ImageHandler
class Application:
@@ -46,11 +46,13 @@ class Application:
route_to_web = RouteToWeb(self.app)
self.app.include_router( category_controller.router )
#self.app.include_router( dynamic_controller.router )
self.app.include_router(route_to_web.router)
def _include_middelware(self):
self.app.add_middleware( GZipMiddleware, minimum_size = 500 )