fix: Remove duplicate audit-logs route from admin routes (refs #10)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 2m23s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 28s
Deploy to Staging / Verify Staging (pull_request) Successful in 6s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 6s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 2m23s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 28s
Deploy to Staging / Verify Staging (pull_request) Successful in 6s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 6s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
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 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,6 @@ import { UsersController } from './users.controller';
|
|||||||
import {
|
import {
|
||||||
CreateAdminInput,
|
CreateAdminInput,
|
||||||
AdminAuth0SubInput,
|
AdminAuth0SubInput,
|
||||||
AuditLogsQueryInput,
|
|
||||||
BulkCreateAdminInput,
|
BulkCreateAdminInput,
|
||||||
BulkRevokeAdminInput,
|
BulkRevokeAdminInput,
|
||||||
BulkReinstateAdminInput,
|
BulkReinstateAdminInput,
|
||||||
@@ -78,11 +77,7 @@ export const adminRoutes: FastifyPluginAsync = async (fastify) => {
|
|||||||
handler: adminController.reinstateAdmin.bind(adminController)
|
handler: adminController.reinstateAdmin.bind(adminController)
|
||||||
});
|
});
|
||||||
|
|
||||||
// GET /api/admin/audit-logs - Fetch audit trail
|
// NOTE: GET /api/admin/audit-logs moved to audit-log feature (centralized audit logging)
|
||||||
fastify.get<{ Querystring: AuditLogsQueryInput }>('/admin/audit-logs', {
|
|
||||||
preHandler: [fastify.requireAdmin],
|
|
||||||
handler: adminController.getAuditLogs.bind(adminController)
|
|
||||||
});
|
|
||||||
|
|
||||||
// POST /api/admin/admins/bulk - Create multiple admins
|
// POST /api/admin/admins/bulk - Create multiple admins
|
||||||
fastify.post<{ Body: BulkCreateAdminInput }>('/admin/admins/bulk', {
|
fastify.post<{ Body: BulkCreateAdminInput }>('/admin/admins/bulk', {
|
||||||
|
|||||||
Reference in New Issue
Block a user