File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { FastifyInstance } from 'fastify'
2- import fastifyFavicon from 'fastify-favicon'
32import fastifyCors from '@fastify/cors'
43
54export const registerFastifyPlugins = async ( server : FastifyInstance ) : Promise < void > => {
Original file line number Diff line number Diff line change @@ -180,12 +180,13 @@ export const createServer = async () => {
180180 deepLinking : false
181181 } ,
182182 uiHooks : {
183- onRequest : function ( request , reply , next ) { next ( ) } ,
184- preHandler : function ( request , reply , next ) { next ( ) }
183+ onRequest : function ( _request , _reply , next ) { next ( ) } ,
184+ preHandler : function ( _request , _reply , next ) { next ( ) }
185185 } ,
186186 staticCSP : true ,
187187 transformStaticCSP : ( header ) => header ,
188- transformSpecification : ( swaggerObject , request , reply ) => {
188+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
189+ transformSpecification : ( swaggerObject , _request , _reply ) => {
189190 // Remove favicon route from the API specification
190191 if ( swaggerObject . paths && swaggerObject . paths [ '/favicon.ico' ] ) {
191192 delete swaggerObject . paths [ '/favicon.ico' ] ;
You can’t perform that action at this time.
0 commit comments