(func: _t.Callable[[], _t.Any])
| 129 | """ |
| 130 | |
| 131 | def wrap(func: _t.Callable[[], _t.Any]): |
| 132 | _name = name or func.__name__ |
| 133 | self.add_hook( |
| 134 | "routes", |
| 135 | func, |
| 136 | priority=priority, |
| 137 | final=final, |
| 138 | data=dict(name=_name, methods=methods), |
| 139 | ) |
| 140 | return func |
| 141 | |
| 142 | return wrap |
| 143 |
no test coverage detected