We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2b0434 commit 23512beCopy full SHA for 23512be
2 files changed
src/components/container/projects/create-project.svelte
@@ -73,7 +73,7 @@
73
+ Create Project
74
</Dialog.Trigger>
75
<Dialog.Content class="sm:max-w-[425px]">
76
- <form method="POST" action="?/post" use:enhance>
+ <form method="POST" action="?/createProject" use:enhance>
77
<Dialog.Header>
78
<Dialog.Title>New Project</Dialog.Title>
79
<Dialog.Description>
src/routes/(authenticated)/projects/+page.server.ts
@@ -23,7 +23,7 @@ export const load: PageServerLoad = async () => {
23
const nameSchema = baseCreateProjectSchema.pick({ name: true })
24
25
export const actions: Actions = {
26
- post: async ({ request }) => {
+ createProject: async ({ request }) => {
27
const form = await superValidate(request, zod(createProjectSchema))
28
29
if (!form.valid) {
0 commit comments