feat: add -date flag

This commit is contained in:
Riccardo Senica
2025-01-23 20:29:42 +00:00
parent 6589e8a815
commit fc75d5da15
5 changed files with 12 additions and 7 deletions

View File

@@ -4,8 +4,8 @@ import { NextResponse } from 'next/server';
export async function POST(req: Request) {
try {
if(!process.env.API_KEY){
throw new Error('API KEY environment variable is not set')
if (!process.env.API_KEY) {
throw new Error('API KEY environment variable is not set');
}
const body = await req.json();