Browse Source

fix: signin and signout url correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5206/head
Pranav C 2 years ago
parent
commit
97bec8e1dc
  1. 10
      packages/nocodb-sdk/src/lib/Api.ts
  2. 6
      packages/nocodb/src/schema/swagger.json

10
packages/nocodb-sdk/src/lib/Api.ts

@ -1131,8 +1131,8 @@ export class Api<
* *
* @tags Auth * @tags Auth
* @name Signout * @name Signout
* @summary Signin * @summary Signout
* @request POST:/api/v1/auth/user/signin * @request POST:/api/v1/auth/user/signout
* @response `200` `{ * @response `200` `{
msg?: string, msg?: string,
@ -1145,7 +1145,7 @@ export class Api<
}, },
any any
>({ >({
path: `/api/v1/auth/user/signin`, path: `/api/v1/auth/user/signout`,
method: 'POST', method: 'POST',
format: 'json', format: 'json',
...params, ...params,
@ -1157,7 +1157,7 @@ export class Api<
* @tags Auth * @tags Auth
* @name Signin * @name Signin
* @summary Signin * @summary Signin
* @request POST:/api/v1/auth/user/signout * @request POST:/api/v1/auth/user/signin
* @response `200` `{ * @response `200` `{
token?: string, token?: string,
@ -1176,7 +1176,7 @@ export class Api<
msg?: string; msg?: string;
} }
>({ >({
path: `/api/v1/auth/user/signout`, path: `/api/v1/auth/user/signin`,
method: 'POST', method: 'POST',
body: data, body: data,
type: ContentType.Json, type: ContentType.Json,

6
packages/nocodb/src/schema/swagger.json

@ -95,9 +95,9 @@
"description": "Create a new user with provided email and password and first user is marked as super admin. " "description": "Create a new user with provided email and password and first user is marked as super admin. "
} }
}, },
"/api/v1/auth/user/signin": { "/api/v1/auth/user/signout": {
"post": { "post": {
"summary": "Signin", "summary": "Signout",
"operationId": "auth-signout", "operationId": "auth-signout",
"responses": { "responses": {
"200": { "200": {
@ -123,7 +123,7 @@
}, },
"parameters": [] "parameters": []
}, },
"/api/v1/auth/user/signout": { "/api/v1/auth/user/signin": {
"post": { "post": {
"summary": "Signin", "summary": "Signin",
"operationId": "auth-signin", "operationId": "auth-signin",

Loading…
Cancel
Save