generated from nhcarrigan/template
feat: add ability to log and display sanctions
This commit is contained in:
@@ -11,6 +11,7 @@ import { ipHook } from "./hooks/ips.js";
|
||||
import { announcementRoutes } from "./routes/announcement.js";
|
||||
import { baseRoutes } from "./routes/base.js";
|
||||
import { mcpRoutes } from "./routes/mcp.js";
|
||||
import { sanctionRoutes } from "./routes/sanction.js";
|
||||
import { logger } from "./utils/logger.js";
|
||||
|
||||
const server = fastify({
|
||||
@@ -34,6 +35,7 @@ server.addHook("preHandler", ipHook);
|
||||
server.register(baseRoutes);
|
||||
server.register(announcementRoutes);
|
||||
server.register(mcpRoutes);
|
||||
server.register(sanctionRoutes);
|
||||
|
||||
server.listen({ port: 20_000 }, (error) => {
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user