Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
0e2f00f2
Commit
0e2f00f2
authored
3 years ago
by
Patrick
Browse files
Options
Download
Email Patches
Plain Diff
server.js aktualisiert
parent
522c7eba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server.js
+8
-0
server.js
with
8 additions
and
0 deletions
+8
-0
server.js
+
8
-
0
View file @
0e2f00f2
const
http
=
require
(
'
http
'
);
const
fs
=
require
(
'
fs
'
);
const
express
=
require
(
'
express
'
)
var
bodyParser
=
require
(
'
body-parser
'
)
const
app
=
express
();
// const bodyParser = require('body-parser')
// const soap = require('soap');
...
...
@@ -17,6 +18,13 @@ app.use(express.static('vcm'));
app
.
listen
(
process
.
env
.
PORT
||
8083
);
console
.
log
(
"
on 8083
"
);
// parse application/x-www-form-urlencoded
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
false
}))
// parse application/json
app
.
use
(
bodyParser
.
json
())
var
minutesDifference
var
hoursDifference
var
secondsDifference
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets