zero-ui/backend/routes/controller.js

14 lines
352 B
JavaScript
Raw Normal View History

2021-03-22 03:25:13 +08:00
const express = require("express");
const router = express.Router();
const auth = require("../services/auth");
const api = require("../utils/controller-api");
router.get("/status", auth.isAuthorized, async function (req, res) {
api.get("status").then(function (controllerRes) {
res.send(controllerRes.data);
});
});
module.exports = router;