mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 06:03:09 +02:00
[Swagger]Add /auth/accept
This commit is contained in:
parent
2a0291e285
commit
43290a9ea3
2 changed files with 26 additions and 0 deletions
|
@ -7,6 +7,29 @@ import rndstr from 'rndstr';
|
||||||
import AuthSess from '../../models/auth-session';
|
import AuthSess from '../../models/auth-session';
|
||||||
import Userkey from '../../models/userkey';
|
import Userkey from '../../models/userkey';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @swagger
|
||||||
|
* /auth/accept:
|
||||||
|
* post:
|
||||||
|
* summary: Accept a session
|
||||||
|
* parameters:
|
||||||
|
* - $ref: "#/parameters/ShouldSecureKey"
|
||||||
|
* -
|
||||||
|
* name: token
|
||||||
|
* description: Session Token
|
||||||
|
* in: formData
|
||||||
|
* required: true
|
||||||
|
* type: string
|
||||||
|
* responses:
|
||||||
|
* 204:
|
||||||
|
* description: OK
|
||||||
|
*
|
||||||
|
* default:
|
||||||
|
* description: Failed
|
||||||
|
* schema:
|
||||||
|
* $ref: "#/definitions/Error"
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Accept
|
* Accept
|
||||||
*
|
*
|
||||||
|
|
|
@ -7,6 +7,9 @@ const yaml = require('js-yaml');
|
||||||
const apiRoot = './src/api/endpoints';
|
const apiRoot = './src/api/endpoints';
|
||||||
const files = [
|
const files = [
|
||||||
'users.js',
|
'users.js',
|
||||||
|
//auth
|
||||||
|
'auth/accept.js',
|
||||||
|
//auth/session
|
||||||
'auth/session/generate.js',
|
'auth/session/generate.js',
|
||||||
'auth/session/show.js',
|
'auth/session/show.js',
|
||||||
'auth/session/userkey.js',
|
'auth/session/userkey.js',
|
||||||
|
|
Loading…
Reference in a new issue