15 lines
No EOL
374 B
TypeScript
15 lines
No EOL
374 B
TypeScript
import { getConfig } from '@/lib/serverActions';
|
|
import { NextResponse } from 'next/server';
|
|
|
|
export const dynamic = 'force-dynamic'
|
|
|
|
export async function GET() {
|
|
let caddyConfig = await getConfig();
|
|
|
|
return new NextResponse(JSON.stringify(caddyConfig), {
|
|
status: 200,
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
});
|
|
} |