feat(api): create template
Add template table to the database Create controller function to check if user has template, and create it in the database Made universal jwt.Claims of user data retrieval function
This commit is contained in:
@@ -11,7 +11,11 @@ export const Route = createFileRoute("/templates/create")({
|
||||
});
|
||||
|
||||
const TemplateSchema = z.object({
|
||||
name: z.string().nonempty("Name is required"),
|
||||
name: z
|
||||
.string()
|
||||
.nonempty("Name is required")
|
||||
.min(2, "Name is too short")
|
||||
.max(50, "Name is too long (max 50)"),
|
||||
template: z.string().nonempty("Template is required"),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user