refactor(backend): flatten module structure, move routes to .routes.ts files

- Remove empty controllers/, services/, repositories/ subdirectories
- Move routes/index.ts into module.routes.ts (flat naming convention)
- Update imports in http/app.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-01 21:53:08 +07:00
co-authored by Claude Opus 4.6
parent c48a0c5e3b
commit f20c2389a4
6 changed files with 8 additions and 8 deletions
@@ -7,7 +7,7 @@ import {
handleGetOverview,
handleGetTopViolators,
handleGetUserLeaderboard,
} from "../analytics.controller.js";
} from "./analytics.controller.js";
export function createAnalyticsRouter(): Router {
const router = express.Router();
@@ -1,6 +1,6 @@
import type { Router } from "express";
import express from "express";
import { handleHealthCheck } from "../health.controller.js";
import { handleHealthCheck } from "./health.controller.js";
export function createHealthRouter(): Router {
const router = express.Router();
@@ -5,7 +5,7 @@ import {
handleGetMessageById,
handleGetMessagesByChannel,
handleListMessages,
} from "../messages.controller.js";
} from "./messages.controller.js";
export function createMessagesRouter(): Router {
const router = express.Router();