11 lines
273 B
TypeScript
11 lines
273 B
TypeScript
import { Handlers } from "$fresh/server.ts";
|
|
import { json } from "@lib/helpers.ts";
|
|
import { fetchResource } from "@lib/marka/index.ts";
|
|
|
|
export const handler: Handlers = {
|
|
async GET() {
|
|
const series = await fetchResource("series");
|
|
return json(series);
|
|
},
|
|
};
|