Commit 07c44c82 authored by Markus Opolka's avatar Markus Opolka
Browse files

Adjust API console output

parent 156b9939
......@@ -22,6 +22,7 @@ function readXMLFile (filepath) {
try {
var xml = fs.readFileSync(filepath, 'utf8')
/* eslint-disable handle-callback-err */
parser.parseString(xml, function (err, result) {
data = result
})
......@@ -70,7 +71,7 @@ function getJsonFiles (filepath) {
link: '/letters/' + files[i].slice(0, -4),
name: transformFilename(files[i]),
filepath: path.join(dir, files[i]),
url: 'http://localhost:3000/api/letters/' + transformFilename(files[i], true)
url: '/api/letters/' + transformFilename(files[i], true)
}
data.push(letter)
......@@ -90,5 +91,5 @@ app.get('/api/letters/:filename', function (req, res) {
})
app.listen(PORT, function () {
console.log('Running API on port ' + PORT)
console.log('> Listening at http://localhost:' + PORT)
})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment