refactor and restructure pinia store and trpc routers + add members list to account store
This commit is contained in:
10
server/trpc/routers/auth.router.ts
Normal file
10
server/trpc/routers/auth.router.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { protectedProcedure, router } from '../trpc'
|
||||
|
||||
export const authRouter = router({
|
||||
getDBUser: protectedProcedure
|
||||
.query(({ ctx }) => {
|
||||
return {
|
||||
dbUser: ctx.dbUser,
|
||||
}
|
||||
}),
|
||||
})
|
||||
Reference in New Issue
Block a user