Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 » openapi docs not generated for the "/" route #36

Open
lucas-labs opened this issue Sep 2, 2024 · 0 comments
Open

🐞 » openapi docs not generated for the "/" route #36

lucas-labs opened this issue Sep 2, 2024 · 0 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@lucas-labs
Copy link
Owner

If we set a route to the root path (http://host:port/), the openapi docs are not generated for that route.

@controller('/')
class HelloController:
    service: GreeterService  # 💉 injected

    @get('/')
    def say_hello(self, name: str) -> Greet:
        return self.service.say_hello()

/docs:

image

@lucas-labs lucas-labs added the 🐛 bug Something isn't working label Sep 2, 2024
@lucas-labs lucas-labs self-assigned this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant