From 80275c1670cdb017eeac57a2b048b2bdb05278c6 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 11 Jan 2026 11:18:45 -0600 Subject: [PATCH] fix: Remove duplicate audit-logs route from admin routes (refs #10) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old /api/admin/audit-logs route in admin.routes.ts conflicted with the new centralized audit-log feature. Removed the old route since we're now using the unified audit logging system. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/src/features/admin/api/admin.routes.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/src/features/admin/api/admin.routes.ts b/backend/src/features/admin/api/admin.routes.ts index d52d8c0..857927f 100644 --- a/backend/src/features/admin/api/admin.routes.ts +++ b/backend/src/features/admin/api/admin.routes.ts @@ -9,7 +9,6 @@ import { UsersController } from './users.controller'; import { CreateAdminInput, AdminAuth0SubInput, - AuditLogsQueryInput, BulkCreateAdminInput, BulkRevokeAdminInput, BulkReinstateAdminInput, @@ -78,11 +77,7 @@ export const adminRoutes: FastifyPluginAsync = async (fastify) => { handler: adminController.reinstateAdmin.bind(adminController) }); - // GET /api/admin/audit-logs - Fetch audit trail - fastify.get<{ Querystring: AuditLogsQueryInput }>('/admin/audit-logs', { - preHandler: [fastify.requireAdmin], - handler: adminController.getAuditLogs.bind(adminController) - }); + // NOTE: GET /api/admin/audit-logs moved to audit-log feature (centralized audit logging) // POST /api/admin/admins/bulk - Create multiple admins fastify.post<{ Body: BulkCreateAdminInput }>('/admin/admins/bulk', {