mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-06 04:51:44 -07:00
feat: es6+mods and replace node-cron with croner
This commit is contained in:
parent
19c92ed244
commit
ea828c326f
9 changed files with 10437 additions and 374 deletions
|
@ -1,10 +1,10 @@
|
|||
import express from "express";
|
||||
const router = express.Router();
|
||||
|
||||
import { isAuthorized } from "../services/auth.js";
|
||||
import * as auth from "../services/auth.js";
|
||||
import { api } from "../utils/controller-api.js";
|
||||
|
||||
router.get("/status", isAuthorized, async function (req, res) {
|
||||
router.get("/status", auth.isAuthorized, async function (req, res) {
|
||||
api.get("status").then(function (controllerRes) {
|
||||
res.send(controllerRes.data);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue