rumahjo/app/api/productionstatus/route.js

14 lines
409 B
JavaScript
Raw Normal View History

2024-09-07 00:46:58 +00:00
// app/api/route.js
import { NextResponse, NextRequest } from "next/server";
import { statusProduction } from "@/app/library/configDatabase";
// Handles GET requests to /api
export async function GET(req, Response) {
return NextResponse.json({ message: statusProduction });
}
// Handles POST requests to /api
export async function POST(req) {
return NextResponse.json({ message: "Hello World" });
}