From 62f9875418444274c8aa3785ea913677c203e840 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 30 Oct 2022 01:40:44 +0300 Subject: Fix routes usage --- vnext/server/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vnext/server/index.js') diff --git a/vnext/server/index.js b/vnext/server/index.js index 5840b586..f9a432b9 100644 --- a/vnext/server/index.js +++ b/vnext/server/index.js @@ -13,9 +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.post('/api/sender', event); +router.get('/api/oembed', oembed); +router.get('/api/urlexpand', urlExpand); router.use('^/$', serverRenderer); // other static resources should just be served as they are -- cgit v1.2.3