refactor(api): update barrel exports
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
import { httpJson } from "@/lib/api/http"
|
||||
import { isApiError } from "@/lib/errors"
|
||||
import { mockUsers } from "@/lib/mock"
|
||||
import type { User } from "@/lib/types"
|
||||
|
||||
export function listUsers() {
|
||||
return mockUsers
|
||||
}
|
||||
|
||||
export async function getUserById(userId: string): Promise<User | undefined> {
|
||||
try {
|
||||
return await httpJson<User>(`/api/v1/users/${userId}`)
|
||||
|
||||
Reference in New Issue
Block a user