feat: es6+mods and replace node-cron with croner

This commit is contained in:
Andres 2023-10-08 16:37:26 +02:00
parent 19c92ed244
commit ea828c326f
9 changed files with 10437 additions and 374 deletions

View file

@ -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);
});