Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vue-cdbp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Markus Opolka
vue-cdbp
Commits
07c44c82
Commit
07c44c82
authored
7 years ago
by
Markus Opolka
Browse files
Options
Downloads
Patches
Plain Diff
Adjust API console output
parent
156b9939
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api.js
+3
-2
3 additions, 2 deletions
api.js
with
3 additions
and
2 deletions
api.js
+
3
−
2
View file @
07c44c82
...
...
@@ -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
)
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment