Skip to content

Commit

Permalink
Back to previous name
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj committed Apr 27, 2024
1 parent d50992c commit c4afc6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Source, getOperationAST, parse } from 'graphql';
import { GraphQLValidationError } from '../../../services/graphql/errors/validation.js';
import type { GraphQLParams } from '../../../types/index.js';

export const graphQl: RequestHandler = (req, res, next) => {
export const parseGraphQl: RequestHandler = (req, res, next) => {
if (req.method !== 'GET' && req.method !== 'POST') {
throw new MethodNotAllowedError({ allowed: ['GET', 'POST'], current: req.method });
}
Expand Down

0 comments on commit c4afc6f

Please sign in to comment.