UNPKG

@intuitionrobotics/push-pub-sub

Version:
13 lines 506 B
// Hand-wired handler(fn) routes for the push-pub-sub lib. import { Router } from "express"; import { handler } from "@intuitionrobotics/thunderstorm/backend"; import { read } from "./v1/push/read.js"; import { register } from "./v1/push/register.js"; const push = Router(); push.post("/read", handler(read)); push.post("/register", handler(register)); const v1 = Router(); v1.use("/push", push); export const pushPubSubRoutes = Router(); pushPubSubRoutes.use("/v1", v1); //# sourceMappingURL=routes.js.map