aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-29 23:35:20 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit47218df561e877265c739ffab59b760318ea3143 (patch)
tree166dd029133aca8d0d60af50535bb579bd6b8096 /vnext/server/index.js
parent3a403e4023ce3b7074a7922e7b504263ddc7a3d1 (diff)
Merge server routes from Next version
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