chore: bump deps and update copyright year (#1069)

This commit is contained in:
Lino Le Van
2023-03-21 18:56:30 +09:00
committed by GitHub
parent 4bfab6a8a9
commit 7b036f0af8
19 changed files with 88 additions and 91 deletions
+6 -4
View File
@@ -391,8 +391,10 @@ export class ServerContext {
*/
#handlers(): [
rutt.Routes<RouterState>,
rutt.Handler<RouterState>,
rutt.ErrorHandler<RouterState>,
{
otherHandler: rutt.Handler<RouterState>;
errorHandler: rutt.ErrorHandler<RouterState>;
},
] {
const routes: rutt.Routes<RouterState> = {};
@@ -539,7 +541,7 @@ export class ServerContext {
}
}
const unknownHandler: rutt.Handler<RouterState> = (
const otherHandler: rutt.Handler<RouterState> = (
req,
ctx,
) =>
@@ -575,7 +577,7 @@ export class ServerContext {
);
};
return [routes, unknownHandler, errorHandler];
return [routes, { otherHandler, errorHandler }];
}
#staticFileHandler(