server/router/status.js
Artem Anufrij cff48aaada
All checks were successful
continuous-integration/drone Build is passing
move
2023-02-08 12:30:56 +01:00

19 lines
554 B
JavaScript

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;