search_awesome/routes/api/_list.ts

11 lines
313 B
TypeScript
Raw Normal View History

2022-11-29 01:52:44 +09:00
import { HandlerContext } from "$fresh/server.ts";
import { SAMPLE_DATA, RepoData } from "../../api/repo.ts";
export const handler = (_req: Request, _ctx: HandlerContext): Response => {
return new Response(JSON.stringify(SAMPLE_DATA), {
headers: {
"content-type": "application/json",
},
});
};