Files
core2026/app/game-api/src/router.ts
T
Hide_D b0a8f768e9 feat: add survey view with voting functionality and admin panel
- Implemented SurveyView.vue for displaying and managing polls, including voting, comments, and results.
- Added new database tables for vote polls, votes, and comments in migration script.
- Created unique lottery logic for handling unique item rewards based on voting.
- Developed unit tests for unique lottery functionality to ensure deterministic behavior and correct counting of occupied unique items.
2026-02-03 18:25:26 +00:00

54 lines
2.0 KiB
TypeScript

import { router } from './trpc.js';
import { battleRouter } from './router/battle/index.js';
import { authRouter } from './router/auth/index.js';
import { generalRouter } from './router/general/index.js';
import { healthRouter } from './router/health/index.js';
import { joinRouter } from './router/join/index.js';
import { inheritRouter } from './router/inherit/index.js';
import { lobbyRouter } from './router/lobby/index.js';
import { messagesRouter } from './router/messages/index.js';
import { nationRouter } from './router/nation/index.js';
import { npcRouter } from './router/npc/index.js';
import { publicRouter } from './router/public/index.js';
import { troopRouter } from './router/troop/index.js';
import { turnDaemonRouter } from './router/turnDaemon/index.js';
import { turnsRouter } from './router/turns/index.js';
import { worldRouter } from './router/world/index.js';
import { auctionRouter } from './router/auction/index.js';
import { tournamentRouter } from './router/tournament/index.js';
import { boardRouter } from './router/board/index.js';
import { diplomacyRouter } from './router/diplomacy/index.js';
import { yearbookRouter } from './router/yearbook/index.js';
import { rankingRouter } from './router/ranking/index.js';
import { dynastyRouter } from './router/dynasty/index.js';
import { voteRouter } from './router/vote/index.js';
export const appRouter = router({
health: healthRouter,
auth: authRouter,
lobby: lobbyRouter,
public: publicRouter,
join: joinRouter,
inherit: inheritRouter,
battle: battleRouter,
world: worldRouter,
turns: turnsRouter,
messages: messagesRouter,
troop: troopRouter,
general: generalRouter,
nation: nationRouter,
npc: npcRouter,
turnDaemon: turnDaemonRouter,
auction: auctionRouter,
tournament: tournamentRouter,
board: boardRouter,
diplomacy: diplomacyRouter,
yearbook: yearbookRouter,
ranking: rankingRouter,
dynasty: dynastyRouter,
vote: voteRouter,
});
export type AppRouter = typeof appRouter;