mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* add counter metric and logger for bot request * add script for grafana local instance * add log endpoint * add ENV to enable monitoring * [skip ci] change metric labels and add telegram bot * [skip ci] remove 404 from /metrics route
10 lines
256 B
TypeScript
10 lines
256 B
TypeScript
import type { NextApiRequest, NextApiResponse } from 'next';
|
|
|
|
import { httpLogger } from 'nextjs/utils/logger';
|
|
|
|
export default async function logHandler(req: NextApiRequest, res: NextApiResponse) {
|
|
httpLogger(req, res);
|
|
|
|
res.status(200).send('ok');
|
|
}
|