Add frequencies api route
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import type { RequestHandler } from './$types';
|
||||
import { prisma } from '$lib/db';
|
||||
|
||||
export const GET: RequestHandler = async () => {
|
||||
const frequencies = await prisma.solfeggioFrequency.findMany()
|
||||
return new Response(JSON.stringify(frequencies))
|
||||
}
|
||||
Reference in New Issue
Block a user