11 lines
360 B
TypeScript
11 lines
360 B
TypeScript
import type { NextRequest } from "next/server"
|
|
import { proxyBackendRequest } from "@/lib/proxy-backend-request"
|
|
|
|
export const runtime = "nodejs"
|
|
export const dynamic = "force-dynamic"
|
|
export const maxDuration = 600
|
|
|
|
export async function POST(request: NextRequest) {
|
|
return proxyBackendRequest(request, "/api/system/database/restore", { method: "POST" })
|
|
}
|