From eb04de8c598799bd3827638da5f50e759e2eaddf Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 18 Feb 2024 17:38:43 +0300 Subject: vnext: /api/v2/ --- vnext/server/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vnext') 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) -- cgit v1.2.3