mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 22:38:02 +03:00
fix: muppet
This commit is contained in:
@@ -85,10 +85,6 @@ if (Environment.nodeEnv !== "production" && IsNonEmptyString(ServerConfig.CLIENT
|
||||
next();
|
||||
});
|
||||
|
||||
if (ServerConfig.ENABLE_METRICS) {
|
||||
app.use(ExpressPromBundle({ includeMethod: true, includePath: true }));
|
||||
}
|
||||
|
||||
// hack to allow all OPTIONS requests. Remember that this setting should not be on in production!
|
||||
if (ServerConfig.OPTIONS_ALWAYS_SUCCEEDS === true) {
|
||||
app.options("*", (req, res) => res.send());
|
||||
@@ -113,6 +109,10 @@ if (Environment.nodeEnv !== "production" && IsNonEmptyString(ServerConfig.CLIENT
|
||||
app.use(helmet());
|
||||
}
|
||||
|
||||
if (ServerConfig.ENABLE_METRICS) {
|
||||
app.use(ExpressPromBundle({ includeMethod: true, includePath: true }));
|
||||
}
|
||||
|
||||
app.use(userSessionMiddleware);
|
||||
|
||||
// Most of these options are leveraged from KTAPI
|
||||
|
||||
Reference in New Issue
Block a user