fix: resolve linting errors
- Remove unused parameters in logout route - Remove unused AnimatePresence import - Remove unused handleLogout function
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
export async function POST() {
|
||||
try {
|
||||
// Simple logout - just return success
|
||||
// The client will handle clearing the session storage
|
||||
@@ -16,7 +16,7 @@ export async function POST(request: NextRequest) {
|
||||
}
|
||||
}
|
||||
);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return new NextResponse(
|
||||
JSON.stringify({ error: 'Logout failed' }),
|
||||
{ status: 500, headers: { 'Content-Type': 'application/json' } }
|
||||
|
||||
Reference in New Issue
Block a user