1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-25 11:43:07 +01:00

fix: route file regex (#956)

This commit is contained in:
Puyodead1 2023-01-19 09:52:05 -05:00 committed by GitHub
parent a9a2d89372
commit 071cf6c5f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ import { Server, traverseDirectory } from "lambert-server";
const extension =
Symbol.for("ts-node.register.instance") in process ? "ts" : "js";
const DEFAULT_FILTER = new RegExp("^([^.].*)(?<!.d).(" + extension + ")$");
const DEFAULT_FILTER = new RegExp("^([^.].*)(?<!\.d).(" + extension + ")$");
export function registerRoutes(server: Server, root: string) {
return traverseDirectory(