SvelteKit endpoints provide a way to do “backend” functionality within a SvelteKit application. It’s a great way to enhance your application so that you can start doing things with and without JS on, or provide a place to make external API requests.
📚Resources:
Subscribe: https://www.youtube.com/c/DavidParkerW/featured
In this episode, I introduce a few endpoints for sign in, sign out, and creating blog posts. I briefly show how I’m using endpoints (but don’t read the documentation to you).
⏱️ Timestamps:
In this second part of exploring SvelteKit endpoints, I show how you can use endpoints with cookies and getContext and getState in order to have your application work with and without JavaScript on.
⏱️ Timestamps:
In this final part (for now) of exploring SvelteKit endpoints, I create post updating and deleting endpoints, and add a few final touches like adding in success and error messages. I also cleanup the endpoints.
⏱️ Timestamps:
#sveltekit #svelte