mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-11 09:11:27 +01:00
13 lines
469 B
JavaScript
13 lines
469 B
JavaScript
import { get, post, put } from './base';
|
|
|
|
const AuthApi = {
|
|
whoami: () =>get('auth/v1/user/whoami'),
|
|
signup: (params) =>post('auth/v1/user/signup', params),
|
|
login: (params) =>post('auth/v1/user/login', params),
|
|
signout: () => post('auth/v1/user/logout'),
|
|
getProfile: () =>get('auth/v1/user/profile'),
|
|
updateProfile: (params) =>put('auth/v1/user/profile', params),
|
|
updateUsername: (params) =>put('auth/v1/user/username', params)
|
|
};
|
|
|
|
export default AuthApi; |