-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/todos #2
Comments
There'd have to be a local endpoint in the hello world app that proxies to Separately, are you worried about deciding when to delete old sessions? |
There'd be a local endpoint, yes. Two, in fact — they already exist:
With the change proposed above we'd just swap out the
I think there's some value in showing how you'd read a cookie in
Nope — @pngwn pointed this out https://developers.cloudflare.com/workers/runtime-apis/kv#creating-expiring-keys |
In sveltejs/kit#1014 (comment) I proposed having a TODO app as part of the SvelteKit 'hello world' — it's more exciting than a blog, and gives us the opportunity to showcase some unique features.
Ideally the data would be accessed via an
api.svelte.dev
endpoint, I think, so that people aren't required to set up a backend to get the demo app working.Rather than having people log in I was thinking along these lines:
set-cookie: userid=[uuid]; HttpOnly; path=/
headerrequest.context.userid === cookies.userid
userid
to create, read, update and delete TODOsA TODO looks like this:
Does this sound reasonable?
The text was updated successfully, but these errors were encountered: