chore: cleanup and feedback implementation

This commit is contained in:
Catalin Pit
2023-12-08 13:28:34 +00:00
parent 54401b94ae
commit 66c0db91da
7 changed files with 90 additions and 56 deletions

View File

@ -23,6 +23,7 @@ export const apiTokenRouter = router({
});
}
}),
getTokenById: authenticatedProcedure
.input(ZGetApiTokenByIdQuerySchema)
.query(async ({ input, ctx }) => {
@ -40,6 +41,7 @@ export const apiTokenRouter = router({
});
}
}),
createToken: authenticatedProcedure
.input(ZCreateTokenMutationSchema)
.mutation(async ({ input, ctx }) => {
@ -56,6 +58,7 @@ export const apiTokenRouter = router({
});
}
}),
deleteTokenById: authenticatedProcedure
.input(ZDeleteTokenByIdMutationSchema)
.mutation(async ({ input, ctx }) => {