11 lines
313 B
TypeScript
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",
|
|
},
|
|
});
|
|
};
|