aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server/index.js')
-rw-r--r--vnext/server/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/vnext/server/index.js b/vnext/server/index.js
index 2b696977..278a4f4a 100644
--- a/vnext/server/index.js
+++ b/vnext/server/index.js
@@ -2,6 +2,9 @@ import express from 'express';
// we'll talk about this in a minute:
import serverRenderer from './middleware/renderer';
+import event from './middleware/event';
+import oembed from './middleware/oembed';
+import urlExpand from './middleware/urlexpand';
const PORT = 3000;
const path = require('path');
@@ -10,6 +13,9 @@ const path = require('path');
const app = express();
const router = express.Router();
+router.use('/api/sender', event);
+router.use('/api/oembed', oembed);
+router.use('/api/urlexpand', urlExpand);
router.use('^/$', serverRenderer);
// other static resources should just be served as they are