From 38628e822f8eaa4ec96afa3bbd1b5aa8f530552e Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Mon, 11 Mar 2024 22:53:01 +0300 Subject: [PATCH] Add simple endpoint for chains --- src/routes/chains/+server.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/routes/chains/+server.ts diff --git a/src/routes/chains/+server.ts b/src/routes/chains/+server.ts new file mode 100644 index 0000000..69a2ae4 --- /dev/null +++ b/src/routes/chains/+server.ts @@ -0,0 +1,7 @@ +import { allChains } from '$lib/chains' +import { json } from '@sveltejs/kit' +import type { RequestHandler } from './$types' + +export const GET: RequestHandler = async () => { + return json(allChains) +}