mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
fix: route file regex (#956)
This commit is contained in:
parent
95ba38b0cf
commit
0c815fde91
@ -22,7 +22,7 @@ import { Server, traverseDirectory } from "lambert-server";
|
|||||||
const extension =
|
const extension =
|
||||||
Symbol.for("ts-node.register.instance") in process ? "ts" : "js";
|
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) {
|
export function registerRoutes(server: Server, root: string) {
|
||||||
return traverseDirectory(
|
return traverseDirectory(
|
||||||
|
Loading…
Reference in New Issue
Block a user