mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 23:48:33 +00:00
set http status to 200 for post internal api endpoint
This commit is contained in:
@@ -2,6 +2,8 @@ import {
|
||||
Body,
|
||||
Controller,
|
||||
Get,
|
||||
HttpCode,
|
||||
Inject,
|
||||
Param,
|
||||
Post,
|
||||
Query,
|
||||
@@ -78,6 +80,8 @@ export class InternalController {
|
||||
}
|
||||
|
||||
@Post(['/api/v2/internal/:workspaceId/:baseId'])
|
||||
// return 200 instead 201 for more generic operations
|
||||
@HttpCode(200)
|
||||
protected async internalAPIPost(
|
||||
@TenantContext() context: NcContext,
|
||||
@Param('workspaceId') workspaceId: string,
|
||||
|
||||
Reference in New Issue
Block a user