Skip to content

Commit

Permalink
super barebones server route
Browse files Browse the repository at this point in the history
  • Loading branch information
idan committed Jul 4, 2024
1 parent ccc8c19 commit 80e8601
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 40 deletions.
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>

<h1>v1</h1>
<h1>v2</h1>

<form method="POST" action="/auth?/login">
<button>Login</button>
Expand Down
29 changes: 0 additions & 29 deletions src/routes/auth/+page.server.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/routes/auth/+page.svelte

This file was deleted.

2 changes: 1 addition & 1 deletion src/routes/auth/+server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { json } from '@sveltejs/kit';
import type { RequestHandler } from './$types';

export const fallback: RequestHandler = async ({request, platform}) => {
export const POST: RequestHandler = async ({request, platform}) => {
return json({request, platform});
}

0 comments on commit 80e8601

Please sign in to comment.