mirror of
https://github.com/sasjs/server.git
synced 2026-01-07 06:30:06 +00:00
chore: swagger authentication added
This commit is contained in:
@@ -8,7 +8,8 @@ import {
|
||||
Patch,
|
||||
Delete,
|
||||
Body,
|
||||
Hidden
|
||||
Hidden,
|
||||
Security
|
||||
} from 'tsoa'
|
||||
import bcrypt from 'bcryptjs'
|
||||
|
||||
@@ -28,7 +29,8 @@ interface userDetailsResponse {
|
||||
isAdmin: boolean
|
||||
}
|
||||
|
||||
@Route('user')
|
||||
@Security('bearerAuth')
|
||||
@Route('SASjsApi/user')
|
||||
export default class UserController {
|
||||
/**
|
||||
* Get list of all users (username, displayname). All users can request this.
|
||||
|
||||
Reference in New Issue
Block a user