add login redirect
This commit is contained in:
1 parent
a94be71c98
commit
2a5a5c601c
12 files changed
+113
-15
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { AxiosResponse } from 'axios';
|
||||
import httpClient from '../../instance';
|
||||
import { IUserDetailResponse, IUser } from './types';
|
||||
|
||||
class UserService {
|
||||
key = 'users';
|
||||
|
||||
async get(id: string | string[]): Promise<AxiosResponse<IUserDetailResponse>> {
|
||||
return httpClient.get(`/${this.key}/${id}`);
|
||||
}
|
||||
}
|
||||
|
||||
export default new UserService();
|
||||
Reference in new issue
Block a user