mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-21 04:16:38 +00:00
Chungus 2.0
This commit is contained in:
14
server/routers/billing/webhooks.ts
Normal file
14
server/routers/billing/webhooks.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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")
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user