create api version

This commit is contained in:
2025-02-25 12:11:24 +08:00
parent ee524b4bae
commit a894ba7fb7
2 changed files with 18 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
import { NextResponse } from "next/server";
import packageVersion from "../../../../package.json";
export async function GET(request: Request) {
const version = packageVersion.version
return NextResponse.json(
{
success: true,
message: "Success get version",
data: version,
},
{ status: 200 }
);
}