pixelmund / svemix

The Full-Stack addition to SvelteKit. Write your server code inside svelte files, handle sessions, forms and SEO easily.
https://svemix.com
MIT License
336 stars 16 forks source link

Refactor into imported functions #4

Closed pixelmund closed 2 years ago

pixelmund commented 2 years ago

Currently we're creating the endpoints with the same code over and over again, we could create functions inside svemix/server which we import and call instead. This will also be better for refactoring and working on those functions, because of Syntax Highlighting etc.