mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-06 04:51:44 -07:00
13 lines
352 B
JavaScript
13 lines
352 B
JavaScript
import express from "express";
|
|
const router = express.Router();
|
|
|
|
import { isAuthorized } from "../services/auth.js";
|
|
import { api } from "../utils/controller-api.js";
|
|
|
|
router.get("/status", isAuthorized, async function (req, res) {
|
|
api.get("status").then(function (controllerRes) {
|
|
res.send(controllerRes.data);
|
|
});
|
|
});
|
|
|
|
export default router;
|