Skip to content

Commit

Permalink
endpoints clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Mar 12, 2024
1 parent 6b44d47 commit 789f639
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/server/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@

import fastapi
from nxtools import slugify
from pydantic import BaseModel

import nebula
from nebula.common import classes_from_module, import_module
from nebula.plugins.library import plugin_library
from server.context import ScopedEndpoint, server_context
from server.models import ResponseModel
from server.request import APIRequest


Expand Down Expand Up @@ -90,7 +88,6 @@ def install_endpoints(app: fastapi.FastAPI):
if response_model is not None:
additional_params["response_model_exclude_none"] = endpoint.exclude_none
additional_params["response_model_exclude_unset"] = endpoint.exclude_unset
print("response_model", response_model, additional_params)

if isinstance(endpoint.__doc__, str):
docstring = "\n".join([r.strip() for r in endpoint.__doc__.split("\n")])
Expand Down

0 comments on commit 789f639

Please sign in to comment.