fix(jury-voting): update routes.test.ts import to match apiRouter refactoring
This commit is contained in:
@@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach, afterAll } from 'vitest';
|
||||
import express from 'express';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { registerRoutes } from '../routes.js';
|
||||
import { apiRouter } from '../routes.js';
|
||||
|
||||
const DATA_DIR = path.join(process.cwd(), 'server', 'data');
|
||||
const SESSION_FILE = path.join(DATA_DIR, 'session.json');
|
||||
@@ -12,7 +12,7 @@ const BACKUP_FILE = path.join(DATA_DIR, 'session.json.bak');
|
||||
function createApp() {
|
||||
const app = express();
|
||||
app.use(express.json());
|
||||
registerRoutes(app);
|
||||
app.use(apiRouter);
|
||||
return app;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user