12 lines
340 B
TypeScript
12 lines
340 B
TypeScript
|
import { Handlers } from "$fresh/server.ts";
|
||
|
import { json } from "@lib/helpers.ts";
|
||
|
import { getAllRecommendations } from "@lib/recommendation.ts";
|
||
|
|
||
|
export const handler: Handlers = {
|
||
|
async GET() {
|
||
|
const recommendations = await getAllRecommendations();
|
||
|
console.log({ recommendations });
|
||
|
return json(recommendations);
|
||
|
},
|
||
|
};
|