mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
使用url()来构建url
This commit is contained in:
1 parent
0efac48bde
commit
86f67a0ec3
61 files changed
+262
-275
No files matched your search
@@ -8,12 +8,7 @@ class NotFoundHandler extends Handler {
|
||||
}
|
||||
|
||||
async function apply() {
|
||||
Route('/:param1', NotFoundHandler);
|
||||
Route('/:param1/:param2', NotFoundHandler);
|
||||
Route('/:param1/:param2/:param3', NotFoundHandler);
|
||||
Route('/:param1/:param2/:param3/:param4', NotFoundHandler);
|
||||
Route('/:param1/:param2/:param3/:param4/:param5', NotFoundHandler);
|
||||
Route('/:param1/:param2/:param3/:param4/:param5/:param6', NotFoundHandler);
|
||||
Route('notfound', '*', NotFoundHandler);
|
||||
}
|
||||
|
||||
global.Hydro.handler.notfound = module.exports = apply;
|
||||
Reference in new issue
Block a user