Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1657

SvelteKit: Is there a way to create multiple GET endpoints in a single +server.js file?

$
0
0

This is an example of what i'm trying to achieve... I'm wondering if there is something like this in sveltekit without creating a separate file to handle the "GET_2" endpoint.

// +server.tsexport const GET: RequestHandler = async () => {  // ...stuff};export const GET_2: RequestHandler = async () => {  // ...stuff};

Viewing all articles
Browse latest Browse all 1657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>