format: file width decreased from 120 to 80
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
import type { NextRequest } from 'next/server'
|
||||
import { NextResponse } from 'next/server'
|
||||
import { redirectRequest, responseToOPTIONS as respondToOPTIONS } from '@/app/api/proxy/functions'
|
||||
import {
|
||||
redirectRequest,
|
||||
responseToOPTIONS as respondToOPTIONS,
|
||||
} from '@/app/api/proxy/functions'
|
||||
import { PROXY_PATHS } from '@/app/api/proxy/paths'
|
||||
import { appConfig } from '@/lib/configLoader'
|
||||
|
||||
// Forwards the incoming request to the save parser backend.
|
||||
async function redirect(req: NextRequest): Promise<NextResponse> {
|
||||
return await redirectRequest(req, PROXY_PATHS.saveParserBackend, appConfig.services.saveParserBackend.url)
|
||||
return await redirectRequest(
|
||||
req,
|
||||
PROXY_PATHS.saveParserBackend,
|
||||
appConfig.services.saveParserBackend.url
|
||||
)
|
||||
}
|
||||
|
||||
// handlers for each request method on this route
|
||||
|
||||
Reference in New Issue
Block a user