server/router/status.js

19 lines
554 B
JavaScript
Raw Permalink Normal View History

2023-02-08 12:30:56 +01:00
console.log("router/status INIT");
var express = require("express");
var router = new express.Router();
var server = require("../server");
var status = server.status;
var tag_excluder = require("../services/tag_excluder");
router.route("").get((req, res) => {
status.scann_buffer = tag_excluder.get_buffer_size();
status.parsing_music_data = tag_excluder.parsing_music_data();
status.parsing_video_data = tag_excluder.parsing_video_data();
status.parsing_cover = tag_excluder.parsing_cover();
res.json(status);
});
module.exports = router;