File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ class CarModule(ModuleBase):
230230Ellar is not aware of ` CarModule ` yet, so we need to add it to the ` modules ` list of ` ApplicationModule ` at the ` carsite/root_module.py ` .
231231``` python
232232from ellar.common import Module, exception_handler
233- from ellar.core import ModuleBase
233+ from ellar.core import IHostContext, ModuleBase
234234from ellar.core.connection import Request
235235from ellar.core.response import JSONResponse, Response
236236
@@ -241,7 +241,7 @@ from .apps.car.module import CarModule
241241@Module (modules = [HomeModule, CarModule])
242242class ApplicationModule (ModuleBase ):
243243 @exception_handler (404 )
244- def exception_404_handler (cls , request : Request , exc : Exception ) -> Response:
244+ def exception_404_handler (cls , context : IHostContext , exc : Exception ) -> Response:
245245 return JSONResponse(dict (detail = " Resource not found." ))
246246
247247```
You can’t perform that action at this time.
0 commit comments