-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🎉 NEW: when we have only 1 method, let's not add the arg * ♻️ NEW: cleaning with nicer keys
- Loading branch information
Showing
18 changed files
with
205 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'vite-plugin-kit-routes': patch | ||
--- | ||
|
||
when we have only 1 method, let's not add the arg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'vite-plugin-kit-routes': patch | ||
--- | ||
|
||
using nicer keys by default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/vite-plugin-kit-routes/src/routes/contract/+page.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<h2>Contracts</h2> |
4 changes: 2 additions & 2 deletions
4
...outes/src/routes/site/[id]/one/+server.ts → ...kit-routes/src/routes/contract/+server.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type { RequestHandler } from './$types' | ||
import type { RequestHandler } from './$types.d.ts' | ||
|
||
export const GET: RequestHandler = async () => { | ||
return new Response() | ||
} | ||
|
||
export const POST: RequestHandler = () => { | ||
// do something | ||
return new Response() | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/vite-plugin-kit-routes/src/routes/contract/[id]/+page.server.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import type { Actions } from './$types.d.ts' | ||
|
||
export const actions = { | ||
default: async () => {}, | ||
} satisfies Actions |
1 change: 1 addition & 0 deletions
1
packages/vite-plugin-kit-routes/src/routes/contract/[id]/+page.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<h2>Contract [id]</h2> |
6 changes: 6 additions & 0 deletions
6
packages/vite-plugin-kit-routes/src/routes/site/+page.server.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { Actions } from './$types.d.ts' | ||
|
||
export const actions = { | ||
action1: async () => {}, | ||
action2: async () => {}, | ||
} satisfies Actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<h2>Sites</h2> |
Oops, something went wrong.
3b3c4eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kitql – ./
kitql.vercel.app
kitql-git-main-jycouet.vercel.app
kitql-jycouet.vercel.app
kitql.dev
www.kitql.dev