bun-router 0.7.4-experimental.7 → 0.7.4-experimental.8
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/logger/logger.ts +1 -1
- package/lib/router/router.ts +1 -3
- package/package.json +1 -1
package/lib/logger/logger.ts
CHANGED
@@ -9,7 +9,7 @@ _ _
|
|
9
9
|
|___|___|_|_| |_| |___|___|_| |___|_|
|
10
10
|
|
11
11
|
`;
|
12
|
-
const VERSION = '0.7.4-experimental.
|
12
|
+
const VERSION = '0.7.4-experimental.8';
|
13
13
|
const Logger = (): BunLogger => {
|
14
14
|
return {
|
15
15
|
info: async (statusCode: number, routePath: string, method: string, message?: string) => {
|
package/lib/router/router.ts
CHANGED
@@ -51,7 +51,7 @@ const Router: BunRouter = (port?: number | string, options?: RouterOptions<Optio
|
|
51
51
|
children: new Map(),
|
52
52
|
dynamicPath: '',
|
53
53
|
isLast: true,
|
54
|
-
path: patternPath.slice(1),
|
54
|
+
path: patternPath.slice(1), // remove the leading '/'
|
55
55
|
method: 'GET',
|
56
56
|
handler: async () => {
|
57
57
|
if (extension === '.tsx') {
|
@@ -63,8 +63,6 @@ const Router: BunRouter = (port?: number | string, options?: RouterOptions<Optio
|
|
63
63
|
},
|
64
64
|
};
|
65
65
|
|
66
|
-
console.log(route.path);
|
67
|
-
|
68
66
|
addRoute(route.path, 'GET', route.handler);
|
69
67
|
});
|
70
68
|
},
|