11 lines
308 B
TypeScript
11 lines
308 B
TypeScript
import { json } from "@lib/helpers.ts";
|
|
import { getAllRecommendations } from "@lib/recommendation.ts";
|
|
import { define } from "../../../utils.ts";
|
|
|
|
export const handler = define.handlers({
|
|
async GET() {
|
|
const recommendations = await getAllRecommendations();
|
|
return json(recommendations);
|
|
},
|
|
});
|