From 8a1fed63002e1bc3967654d57eb7da25cc8ac690 Mon Sep 17 00:00:00 2001 From: Kodarru Date: Sat, 26 Oct 2024 11:58:19 -0700 Subject: [PATCH] =?UTF-8?q?fix(decorators):=20=F0=9F=91=85=F0=9F=91=85?= =?UTF-8?q?=F0=9F=91=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 4 ++-- src/rest/{auth.rest.ts => auth.ts} | 0 src/rest/{example.rest.ts => example.ts} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/rest/{auth.rest.ts => auth.ts} (100%) rename src/rest/{example.rest.ts => example.ts} (100%) diff --git a/src/index.ts b/src/index.ts index 5541307..bea2142 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,12 +7,12 @@ import { Yapper } from "./common/Yapper.js"; import { __DEV__ } from "./common/constants.js"; export const server = fastify({ - loggerInstance: new Yapper("a") + loggerInstance: new Yapper() }); server.register(bootstrap, { directory: resolve(__dirname, "rest"), - mask: /\.rest\./, + mask: RegExp(/\.(js|ts)$/), prefix: "/api" }); diff --git a/src/rest/auth.rest.ts b/src/rest/auth.ts similarity index 100% rename from src/rest/auth.rest.ts rename to src/rest/auth.ts diff --git a/src/rest/example.rest.ts b/src/rest/example.ts similarity index 100% rename from src/rest/example.rest.ts rename to src/rest/example.ts