first commit

This commit is contained in:
2026-06-19 23:55:45 -07:00
commit f2e4730549
297 changed files with 30726 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import http from "@/api/http-client"
import { type Policy } from "@/api/base-api"
import { UserRoles, type User } from "@/api/users-api"
export { UserRoles }
export type UserAsShow = Pick<
User,
"id" | "email" | "firstName" | "lastName" | "displayName" | "roles" | "createdAt" | "updatedAt"
>
export const currentUserApi = {
async get(): Promise<{
user: UserAsShow
policy: Policy
}> {
const { data } = await http.get(`/api/current-user`)
return data
},
}
export default currentUserApi