WIP. A little custom music server
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 13 lines 544 B view raw
1import { createServerFn } from "@tanstack/react-start"; 2 3export const getPunkSongs = createServerFn({ 4 method: "GET", 5}).handler(async () => [ 6 { id: 1, name: "Teenage Dirtbag", artist: "Wheatus" }, 7 { id: 2, name: "Smells Like Teen Spirit", artist: "Nirvana" }, 8 { id: 3, name: "The Middle", artist: "Jimmy Eat World" }, 9 { id: 4, name: "My Own Worst Enemy", artist: "Lit" }, 10 { id: 5, name: "Fat Lip", artist: "Sum 41" }, 11 { id: 6, name: "All the Small Things", artist: "blink-182" }, 12 { id: 7, name: "Beverly Hills", artist: "Weezer" }, 13]);