a0fa66e8f5
Co-authored-by: Walid <87608619+WalidKorchi@users.noreply.github.com>
20 lines
372 B
TypeScript
20 lines
372 B
TypeScript
import { Handler } from '../../handler'
|
|
|
|
import { user, userSettings } from '../user'
|
|
|
|
export const getUsersCurrentHandler: Handler = {
|
|
method: 'GET',
|
|
url: '/users/current',
|
|
response: {
|
|
statusCode: 200,
|
|
body: {
|
|
user: {
|
|
...user,
|
|
settings: userSettings,
|
|
currentStrategy: 'local',
|
|
strategies: ['local']
|
|
}
|
|
}
|
|
}
|
|
}
|