svrjs-nextjs-website/actions/login.action.ts

14 lines
427 B
TypeScript
Raw Normal View History

2024-06-22 10:30:51 +02:00
// 'use server';
// import { NextApiRequest } from 'next';
// import { NextResponse } from 'next/server';
2024-06-20 15:38:05 +02:00
2024-06-22 10:30:51 +02:00
// export async function POST(req: NextApiRequest) {
// const { username, password } = await req.body;
// if (username === process.env.USERNAME && password === process.env.PASSWORD) {
// return NextResponse.json({ success: true });
// } else {
// return NextResponse.json({ success: false });
// }
// }