11 lines
294 B
TypeScript
11 lines
294 B
TypeScript
import { json } from "@lib/helpers.ts";
|
|
import { fetchResource } from "@lib/marka/index.ts";
|
|
import { define } from "../../../utils.ts";
|
|
|
|
export const handler = define.handlers({
|
|
async GET() {
|
|
const articles = await fetchResource("articles");
|
|
return json(articles?.content);
|
|
},
|
|
});
|