search_awesome/routes/api/_query.ts
2022-11-29 01:52:44 +09:00

11 lines
313 B
TypeScript

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",
},
});
};