remove unused locals parameter

This commit is contained in:
2025-11-05 09:18:05 +01:00
parent fd907c9851
commit 808b56934c
5 changed files with 9 additions and 9 deletions

View File

@@ -4,14 +4,14 @@ import bcrypt from 'bcrypt';
const saltRounds = 12;
export function GET({ locals }) {
export function GET() {
const userList = getUsers();
return new Response(JSON.stringify(userList));
}
export async function POST({ request, locals }) {
export async function POST({ request }) {
const data = await request.json();
const userName = data.userName;
const userPassword = data.userPassword;