Skip to content

Commit 68594f5

Browse files
authored
isDevelopment removal (#687)
1 parent c27ca39 commit 68594f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/modgpt/src/routes/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { getRootPath } from "./root";
66
import { getSendChatPath } from "./sendChat";
77
import { getVersionPath } from "./version";
88

9-
const noop = (x: unknown) => undefined;
109
export const publicRoutes: FastifyPluginCallback = (instance, _opts, done) => {
1110
[getRootPath, getVersionPath].forEach((f) => f(instance));
1211
instance.options("/sendChat", (request, reply) => {
@@ -34,6 +33,6 @@ export const protectedRoutes: FastifyPluginCallback = (
3433
// if (isDevelopment) console.info("ENV set to development");
3534
}
3635

37-
if (!isDevelopment) getSendChatPath(instance);
36+
getSendChatPath(instance);
3837
done();
3938
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy