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

GET endpoints not working when using prefixes in @hug.object.urls #892

Open
Hantlowt opened this issue Oct 22, 2021 · 0 comments
Open

GET endpoints not working when using prefixes in @hug.object.urls #892

Hantlowt opened this issue Oct 22, 2021 · 0 comments

Comments

@Hantlowt
Copy link

I'm using hug 2.6.1 with Python 3.8.0 and i have a problem with GET endpoints when i use prefixes in hug.object.urls. For example, this code not working (/test/myendpoint return a 404 http status error) :

@hug.object.urls(prefixes='/test')
class Test:
    def __init__(self):
        pass
    @hug.get('/myendpoint')
    def test():
        return 0

I'm doing something badly ? Or is it really an issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant