fix: make geoip-status a public endpoint (no auth required)

This commit is contained in:
fuomag9
2026-02-25 01:31:06 +01:00
parent e64e522929
commit 25e1f2acee
-2
View File
@@ -1,12 +1,10 @@
import { existsSync } from "node:fs";
import { NextResponse } from "next/server";
import { requireUser } from "@/src/lib/auth";
const COUNTRY_DB = "/usr/share/GeoIP/GeoLite2-Country.mmdb";
const ASN_DB = "/usr/share/GeoIP/GeoLite2-ASN.mmdb";
export async function GET() {
await requireUser();
return NextResponse.json({
country: existsSync(COUNTRY_DB),
asn: existsSync(ASN_DB),