Commit f0756209 authored by shabai517's avatar shabai517
Browse files

server test

parent 786132ad
......@@ -1934,6 +1934,15 @@
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
"cors": {
"version": "2.8.4",
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.4.tgz",
"integrity": "sha1-K9OB8usgECAQXNUOpZ2mMJBpRoY=",
"requires": {
"object-assign": "4.1.1",
"vary": "1.1.2"
}
},
"cosmiconfig": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-2.2.2.tgz",
......
......@@ -2,8 +2,11 @@ var express = require('express');
var router = express.Router();
var EditPageController = require("./EditPageController.js");
var MarkdownController = require("./MarkdownController.js");
var DynatraceController = require("./DynatraceController.js");
router.use("/api/editpage",EditPageController);
router.use("/api/markdownquery",MarkdownController);
router.use("/api/dynatrace",DynatraceController);
module.exports = router;
......@@ -14,6 +14,6 @@ app.use(compression());
app.use(require('../lib/router.js'));
app.listen(8081, function () {
console.log("Example app listening at http://localhost:8081");
app.listen(7000, function () {
console.log("Example app listening at http://localhost:7000");
})
\ No newline at end of file
Markdown is supported
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