mirror of
https://github.com/D4M13N-D3V/neroshitron.git
synced 2025-03-14 10:05:04 +00:00
12 lines
311 B
TypeScript
12 lines
311 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { createClient } from "@/utils/supabase/server";
|
|
|
|
|
|
export async function GET(request: Request) {
|
|
const supabase = createClient();
|
|
let { data: galleries, error } = await supabase
|
|
.from('galleries')
|
|
.select('*')
|
|
return NextResponse.json(galleries)
|
|
}
|
|
|