feat(app): add new setup wizard

This commit is contained in:
ItzCrazyKns
2025-10-19 13:54:35 +05:30
parent df1ed5f0f9
commit 9d0e2e7f7c
4 changed files with 321 additions and 10 deletions

View File

@@ -0,0 +1,23 @@
import configManager from '@/lib/config';
import { NextRequest } from 'next/server';
export const POST = async (req: NextRequest) => {
try {
configManager.markSetupComplete();
return Response.json(
{
message: 'Setup marked as complete.',
},
{
status: 200,
},
);
} catch (err) {
console.error('Error marking setup as complete: ', err);
return Response.json(
{ message: 'An error has occurred.' },
{ status: 500 },
);
}
};