chore: bump dependencies and license year (#986)

This commit is contained in:
Lino Le Van
2023-02-24 15:06:18 +09:00
committed by GitHub
parent 92cee91003
commit ed66986500
15 changed files with 44 additions and 39 deletions
+6 -4
View File
@@ -374,8 +374,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> = {};
@@ -522,7 +524,7 @@ export class ServerContext {
}
}
const unknownHandler: rutt.Handler<RouterState> = (
const otherHandler: rutt.Handler<RouterState> = (
req,
ctx,
) =>
@@ -558,7 +560,7 @@ export class ServerContext {
);
};
return [routes, unknownHandler, errorHandler];
return [routes, { otherHandler, errorHandler }];
}
#staticFileHandler(