aboutsummaryrefslogtreecommitdiff
path: root/api/routes/getMrk/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'api/routes/getMrk/index.js')
-rw-r--r--api/routes/getMrk/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/routes/getMrk/index.js b/api/routes/getMrk/index.js
index 7e48e1d..097f1f0 100644
--- a/api/routes/getMrk/index.js
+++ b/api/routes/getMrk/index.js
@@ -11,6 +11,7 @@ const config = require("../../config");
*/
function fetchFmrk(mrk, res){
const command = spawn("cat",[config.workDir+"/fmrk/"+mrk]);
+ res.set('Content-Type', 'application/json');
command.stdout.on("data", data => {
});
@@ -44,6 +45,7 @@ function fetchFmrk(mrk, res){
};
module.exports = (req, res) => {
console.log(req.params)
+ res.set('Content-Type', 'application/json');
if ( (req.params.mrk) && req.params.mrk.length === 128 ){
regex= /[a-f0-9]{128}/;
if (regex.test(req.params.mrk)){