Sveltekit has 3 parts to its backend. Firstly the load function which gets the data for your page. Secondly are form actions which allow you to process data from a form submisson. And third are API endpoints which serve as generic functions you can run on your server and optionally return data back from.