feat: adding teams in PG

This commit is contained in:
Julien Froidefond
2025-08-21 09:44:29 +02:00
parent 4e82a6d860
commit 345ff5baa0
8 changed files with 478 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
import { NextResponse } from "next/server";
import { TeamsService } from "@/services";
export async function GET() {
try {
const directions = await TeamsService.getDirections();
return NextResponse.json(directions);
} catch (error) {
console.error("Error loading directions:", error);
return NextResponse.json(
{ error: "Failed to load directions" },
{ status: 500 }
);
}
}