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
* @name Signout
* @summary Signin
* @request POST:/api/v1/auth/user/signin
* @summary Signout
* @request POST:/api/v1/auth/user/signout
* @response `200` `{
msg?: string,
@ -1145,7 +1145,7 @@ export class Api<
},
any
>({
path: `/api/v1/auth/user/signin`,
path: `/api/v1/auth/user/signout`,
method: 'POST',
format: 'json',
...params,
@ -1157,7 +1157,7 @@ export class Api<
* @tags Auth
* @name Signin
* @summary Signin
* @request POST:/api/v1/auth/user/signout
* @request POST:/api/v1/auth/user/signin
* @response `200` `{
token?: string,
@ -1176,7 +1176,7 @@ export class Api<
msg?: string;
}
>({
path: `/api/v1/auth/user/signout`,
path: `/api/v1/auth/user/signin`,
method: 'POST',
body: data,
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. "
}
},
"/api/v1/auth/user/signin": {
"/api/v1/auth/user/signout": {
"post": {
"summary": "Signin",
"summary": "Signout",
"operationId": "auth-signout",
"responses": {
"200": {
@ -123,7 +123,7 @@
},
"parameters": []
},
"/api/v1/auth/user/signout": {
"/api/v1/auth/user/signin": {
"post": {
"summary": "Signin",
"operationId": "auth-signin",

Loading…
Cancel
Save