mirror of
https://github.com/logos-messaging/rln.waku.org.git
synced 2026-01-02 14:13:09 +00:00
feat: add a simple /health endpoint
This commit is contained in:
parent
d8cbc3f586
commit
f7d080fa94
12
src/pages/api/health.ts
Normal file
12
src/pages/api/health.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import type { NextApiRequest, NextApiResponse } from 'next';
|
||||
|
||||
type ResponseData = {
|
||||
status: string;
|
||||
};
|
||||
|
||||
export default function handler(
|
||||
req: NextApiRequest,
|
||||
res: NextApiResponse<ResponseData>
|
||||
) {
|
||||
res.status(200).json({ status: 'ok' });
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user