Skip to content

Commit 2f0d71e

Browse files
sai-aarnaclaude
andcommitted
fix: add explicit Router type annotation to resolve TS2742 build error
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4303969 commit 2f0d71e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/api/src/routes/admin.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { adminAuthMiddleware } from '../middleware/adminAuth.middleware';
33
import * as admin from '../handlers/admin.handler';
44
import { adminLogin } from '../handlers/adminLogin.handler';
55

6-
export const adminRouter = Router();
6+
export const adminRouter: Router = Router();
77

88
// Login is unauthenticated — it issues the session token
99
adminRouter.post('/login', adminLogin);

0 commit comments

Comments
 (0)