mirror of
https://github.com/thelittlerocket/zero-ui.git
synced 2025-01-19 20:58:28 +08:00
14 lines
352 B
JavaScript
14 lines
352 B
JavaScript
|
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;
|