mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-27 02:05:20 +00:00
Silence, dotenv, we dont want your ads
This commit is contained in:
+2
-1
@@ -126,7 +126,8 @@ export class SpacebarServer extends Server {
|
||||
// 404 is not an error in express, so this should not be an error middleware
|
||||
// this is a fine place to put the 404 handler because its after we register the routes
|
||||
// and since its not an error middleware, our error handler below still works.
|
||||
api.use("*", (req: Request, res: Response) => {
|
||||
// Emma [it/its] @ Rory& - the _ is required now, as pillarjs throw an error if you don't pass a param name now
|
||||
api.use("*_", (req: Request, res: Response) => {
|
||||
res.status(404).json({
|
||||
message: "404 endpoint not found",
|
||||
code: 0,
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ process.on("unhandledRejection", console.error);
|
||||
|
||||
import "missing-native-js-functions";
|
||||
import { config } from "dotenv";
|
||||
config();
|
||||
config({ quiet: true });
|
||||
import { SpacebarServer } from "./Server";
|
||||
import cluster from "cluster";
|
||||
import os from "os";
|
||||
|
||||
Reference in New Issue
Block a user