mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
15 lines
398 B
TypeScript
15 lines
398 B
TypeScript
import createHttpError from "http-errors";
|
|
import { Request, Response, NextFunction } from "express";
|
|
import HttpCode from "@server/types/HttpCode";
|
|
|
|
export async function billingWebhookHandler(
|
|
req: Request,
|
|
res: Response,
|
|
next: NextFunction
|
|
): Promise<any> {
|
|
// return not found
|
|
return next(
|
|
createHttpError(HttpCode.NOT_FOUND, "This endpoint is not in use")
|
|
);
|
|
}
|