15 lines
330 B
TypeScript
15 lines
330 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { hugo } from "@/lib/hugo";
|
|
import { TG_BOT_TOKEN } from "@/lib/config";
|
|
|
|
export async function GET() {
|
|
const hugoStatus = hugo.status();
|
|
return NextResponse.json({
|
|
bot: {
|
|
enabled: !!TG_BOT_TOKEN,
|
|
polling: !!TG_BOT_TOKEN,
|
|
},
|
|
hugo: hugoStatus,
|
|
});
|
|
}
|