zero-ui/backend/routes/controller.js

14 lines
350 B
JavaScript
Raw Normal View History

2023-10-07 04:11:40 +08:00
import express from "express";
2021-03-22 03:25:13 +08:00
const router = express.Router();
import * as auth from "../services/auth.js";
2023-10-07 04:11:40 +08:00
import { api } from "../utils/controller-api.js";
2021-03-22 03:25:13 +08:00
router.get("/status", auth.isAuthorized, async function (req, res) {
2021-03-22 03:25:13 +08:00
api.get("status").then(function (controllerRes) {
res.send(controllerRes.data);
});
});
2023-10-07 04:11:40 +08:00
export default router;