Rename webhook and open api urls (#11684)
We want to have fewer base path for routing. We will have: - /files - /webhooks - /graphql - /metadata - /rest - /auth - /healthz I'm moving /open-api under /rest, and centralizing the webhooks (removing /stripe and /cloudflare)
This commit is contained in:
@@ -4,11 +4,11 @@ import { Request, Response } from 'express';
|
||||
|
||||
import { OpenApiService } from 'src/engine/core-modules/open-api/open-api.service';
|
||||
|
||||
@Controller('open-api')
|
||||
@Controller()
|
||||
export class OpenApiController {
|
||||
constructor(private readonly openApiService: OpenApiService) {}
|
||||
|
||||
@Get('core')
|
||||
@Get(['open-api/core', 'rest/open-api/core'])
|
||||
async generateOpenApiSchemaCore(
|
||||
@Req() request: Request,
|
||||
@Res() res: Response,
|
||||
@@ -18,7 +18,7 @@ export class OpenApiController {
|
||||
res.send(data);
|
||||
}
|
||||
|
||||
@Get('metadata')
|
||||
@Get(['open-api/metadata', 'rest/open-api/metadata'])
|
||||
async generateOpenApiSchemaMetaData(
|
||||
@Req() request: Request,
|
||||
@Res() res: Response,
|
||||
|
||||
Reference in New Issue
Block a user