🎉 initial commit

This commit is contained in:
2026-08-17 00:22:30 +02:00
parent cd04ebe254
commit 55a51a521d
19 changed files with 1645 additions and 35 deletions
+15
View File
@@ -0,0 +1,15 @@
import { createServerFn } from '@tanstack/react-start'
export const listStaffMembers = createServerFn({ method: 'GET' }).handler(async () => {
const [{ getAuth }, { getRequest }] = await Promise.all([
import('#/lib/auth-instance'),
import('@tanstack/react-start/server'),
])
const { users } = await getAuth().api.listUsers({
headers: getRequest().headers,
query: { sortBy: 'createdAt', sortDirection: 'asc', limit: 100 },
})
return users
})