aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-rw-r--r--vnext/server/index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/vnext/server/index.js b/vnext/server/index.js
index b4186bbf..16abc8db 100644
--- a/vnext/server/index.js
+++ b/vnext/server/index.js
@@ -20,13 +20,13 @@ app.use(raw())
app.use(cors())
const router = express.Router()
-router.post('/api/sender', event)
-router.get('/api/oembed', oembed)
-router.get('/api/urlexpand', urlExpand)
+router.post('/api/v2/sender', event)
+router.get('/api/v2/oembed', oembed)
+router.get('/api/v2/urlexpand', urlExpand)
const durov_webhook = webhookPath()
if (durov_webhook) {
- router.post(`/api/${durov_webhook}`, webhook)
+ router.post(`/api/v2/${durov_webhook}`, webhook)
}
router.use('^/$', serverRenderer)