🐛 fix tsc compiler

This commit is contained in:
Flam3rboy
2021-10-10 12:35:46 +02:00
parent f259a1fd3e
commit 4722dd5d97
6 changed files with 54 additions and 31 deletions
+10
View File
@@ -0,0 +1,10 @@
import { Server, traverseDirectory } from "lambert-server";
const DEFAULT_FILTER = /^([^\.].*)(?<!\.d)\.(js)$/;
export function registerRoutes(server: Server, root: string) {
return traverseDirectory(
{ dirname: root, recursive: true, filter: DEFAULT_FILTER },
server.registerRoute.bind(server, root)
);
}
+1
View File
@@ -17,3 +17,4 @@ export * from "./Rights";
export * from "./Snowflake";
export * from "./String";
export * from "./Array";
export * from "./TraverseDirectory";