我在 Python 3.8.0 中使用了 hug 2.6.1,当我在 hug.object.urls 中使用前缀时,我遇到了 GET 端点问题。例如,此代码不起作用(/test/myendpoint 返回 404 http 状态错误):
@hug.object.urls(prefixes='/test')
class Test:
def __init__(self):
pass
@hug.get('/myendpoint')
def test():
return 0
我在做坏事?或者这是一个问题?