add userCounter mocks and rearrange webhook path

This commit is contained in:
Michael C
2022-09-21 01:14:22 -04:00
parent 3f470a72f5
commit f683ed4f29
6 changed files with 35 additions and 15 deletions

11
test/mocks/UserCounter.ts Normal file
View File

@@ -0,0 +1,11 @@
import { Router } from "express";
export const UserCounter = Router();
UserCounter.post("/api/v1/addIP", (req, res) => {
res.sendStatus(200);
});
UserCounter.get("/api/v1/userCount", (req, res) => {
res.send({
userCount: 100
});
});