Skip to content

Commit

Permalink
get_api_route_handelers fix (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
svetleo-evidently authored Aug 27, 2024
1 parent d90fd25 commit 218dcce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/evidently/ui/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ def get_middlewares(self, ctx: ComponentContext):
def get_route_handlers(self, ctx: ComponentContext):
return []

def get_api_route_handelers(self, ctx: ComponentContext):
def get_api_route_handlers(self, ctx: ComponentContext):
return []

def apply(self, ctx: ComponentContext, builder: AppBuilder):
builder.dependencies.update(self.get_dependencies(ctx))
builder.middlewares.extend(self.get_middlewares(ctx))
builder.route_handlers.extend(self.get_route_handlers(ctx))
builder.api_route_handlers.extend(self.get_api_route_handelers(ctx))
builder.api_route_handlers.extend(self.get_api_route_handlers(ctx))

def finalize(self, ctx: ComponentContext, app: Litestar):
pass
Expand Down
2 changes: 1 addition & 1 deletion src/evidently/ui/local_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def evidently_service_exception_handler(_: Request, exc: EvidentlyServiceError)
class LocalServiceComponent(ServiceComponent):
debug: bool = False

def get_api_route_handelers(self, ctx: ComponentContext):
def get_api_route_handlers(self, ctx: ComponentContext):
guard = ctx.get_component(SecurityComponent).get_auth_guard()
return [create_projects_api(guard), service_api()]

Expand Down

0 comments on commit 218dcce

Please sign in to comment.