import TokenService from '@/app/services/TokenService'
import { NextResponse } from 'next/server'
import { IUserData } from '@/app/types/IUserData'
export async function POST(req: Request) {
const { username, password } = await req.json() // Мне нужно типизировать как IUserData
return NextResponse.json({ test: 1 })
}
export async function POST(req: Request) {
const { username, password } = (await req.json()) as IUserData;
return NextResponse.json({ test: 1 });
}