| 1 | import type { NextRequest } from "next/server"; |
| 2 | import { |
| 3 | completeInstall, |
| 4 | getInstallScript, |
| 5 | } from "@struxa/api/services/wings-servers"; |
| 6 | import { authenticateWings } |
| 7 | |
| 8 | export async function GET |
| 9 | req: NextRequest |
| 10 | { params }: |
| 11 | ) { |
| 12 | const auth = |
| 13 | if (!auth.ok |
| 14 | |
| 15 | const { uuid |
| 16 | const script = |
| 17 | if (!script) |
| 18 | |
| 19 | return Response.json |
| 20 | } |
| 21 | |
| 22 | export async function POST |
| 23 | req: NextRequest |
| 24 | { params }: |
| 25 | ) { |
| 26 | const auth = |
| 27 | if (!auth.ok |
| 28 | |
| 29 | const { uuid |
| 30 | const body = |
| 31 | |
| 32 | const found = |
| 33 | if (!found) |
| 34 | |
| 35 | return new Response |
| 36 | } |