Alex Mikhalev
6 years ago
3 changed files with 24 additions and 0 deletions
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
import PromiseRouter from "express-promise-router"; |
||||
|
||||
import { ServerState } from "@server/state"; |
||||
|
||||
export function mosquitto(state: ServerState) { |
||||
const router = PromiseRouter(); |
||||
|
||||
router.post("/auth", async (req, res) => { |
||||
res.status(200).send(); |
||||
}); |
||||
|
||||
router.post("/superuser", async (req, res) => { |
||||
res.status(200).send(); |
||||
}); |
||||
|
||||
router.post("/acl", async (req, res) => { |
||||
res.status(200).send(); |
||||
}); |
||||
|
||||
return router; |
||||
} |
Loading…
Reference in new issue