mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-24 11:07:14 +00:00
chore: revert group.py
This commit is contained in:
@@ -93,10 +93,7 @@ class RouterGroup(abc.ABC):
|
|||||||
return self.http_status(500, -2, str(e))
|
return self.http_status(500, -2, str(e))
|
||||||
|
|
||||||
new_f = handler_error
|
new_f = handler_error
|
||||||
# 为不同的HTTP方法生成不同的端点名称
|
new_f.__name__ = (self.name + rule).replace('/', '__')
|
||||||
methods = options.get('methods', ['GET'])
|
|
||||||
method_suffix = '_'.join(methods)
|
|
||||||
new_f.__name__ = (self.name + rule + '_' + method_suffix).replace('/', '__')
|
|
||||||
new_f.__doc__ = f.__doc__
|
new_f.__doc__ = f.__doc__
|
||||||
|
|
||||||
self.quart_app.route(rule, **options)(new_f)
|
self.quart_app.route(rule, **options)(new_f)
|
||||||
|
|||||||
Reference in New Issue
Block a user