feat: frontend auth flow (login, user management, audit logs, route guards)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import client from './client'
|
||||
|
||||
export const getUsers = (params?: { page?: number; page_size?: number }) =>
|
||||
client.get('/users', { params })
|
||||
|
||||
export const getUser = (id: string) => client.get(`/users/${id}`)
|
||||
|
||||
export const updateUser = (id: string, data: { role?: string; is_active?: boolean }) =>
|
||||
client.patch(`/users/${id}`, data)
|
||||
|
||||
export const approveUser = (id: string) => client.post(`/users/${id}/approve`)
|
||||
Reference in New Issue
Block a user