Skip to content

Commit

Permalink
refactor(api): remove useless monitor-pre-handlers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetetot committed Feb 6, 2025
1 parent f4384af commit fcf01a2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 100 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Joi from 'joi';

import { BadRequestError, sendJsonApiError } from '../../../shared/application/http-errors.js';
import { securityPreHandlers } from '../../../shared/application/security-pre-handlers.js';
import { monitorPreHandlers } from '../monitor-pre-handlers.js';
import { tokenController } from './token.controller.js';

export const tokenRoutes = [
Expand Down Expand Up @@ -32,7 +31,7 @@ export const tokenRoutes = [
}),
),
},
pre: [{ method: monitorPreHandlers.monitorApiTokenRoute }, { method: securityPreHandlers.checkIfUserIsBlocked }],
pre: [{ method: securityPreHandlers.checkIfUserIsBlocked }],
handler: (request, h) => tokenController.createToken(request, h),
tags: ['identity-access-management', 'api', 'token'],
notes: [
Expand Down

This file was deleted.

0 comments on commit fcf01a2

Please sign in to comment.