File tree Expand file tree Collapse file tree 3 files changed +64
-64
lines changed Expand file tree Collapse file tree 3 files changed +64
-64
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import {
39
39
isHttpMethod ,
40
40
} from './utils.js' ;
41
41
42
- abstract class BaseRouter {
42
+ class Router {
43
43
protected context : Record < string , unknown > ;
44
44
45
45
protected readonly routeRegistry : RouteHandlerRegistry ;
@@ -57,7 +57,7 @@ abstract class BaseRouter {
57
57
*/
58
58
protected readonly isDev : boolean = false ;
59
59
60
- protected constructor ( options ?: RouterOptions ) {
60
+ public constructor ( options ?: RouterOptions ) {
61
61
this . context = { } ;
62
62
const alcLogLevel = getStringFromEnv ( {
63
63
key : 'AWS_LAMBDA_LOG_LEVEL' ,
@@ -515,4 +515,4 @@ abstract class BaseRouter {
515
515
}
516
516
}
517
517
518
- export { BaseRouter } ;
518
+ export { Router } ;
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import type {
3
3
JSONObject ,
4
4
} from '@aws-lambda-powertools/commons/types' ;
5
5
import type { APIGatewayProxyEvent , Context } from 'aws-lambda' ;
6
- import type { BaseRouter } from '../rest/BaseRouter.js' ;
7
6
import type { HttpErrorCodes , HttpVerbs } from '../rest/constants.js' ;
8
7
import type { Route } from '../rest/Route.js' ;
8
+ import type { Router } from '../rest/Router.js' ;
9
9
import type { ResolveOptions } from './common.js' ;
10
10
11
11
type ErrorResponse = {
@@ -34,7 +34,7 @@ interface ErrorConstructor<T extends Error = Error> {
34
34
}
35
35
36
36
/**
37
- * Options for the {@link BaseRouter } class
37
+ * Options for the {@link Router } class
38
38
*/
39
39
type RouterOptions = {
40
40
/**
You can’t perform that action at this time.
0 commit comments