mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2024-11-14 12:46:48 +08:00
13 lines
352 B
JavaScript
13 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;
|