chore: bump deps and update copyright year (#1069)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user