diff options
author | Vitaly Takmazov | 2024-02-18 17:38:43 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-02-18 18:08:07 +0300 |
commit | eb04de8c598799bd3827638da5f50e759e2eaddf (patch) | |
tree | 3605d9a520b4051fc2ca0f241331f456305dfb31 /vnext/server | |
parent | 09f83f8f6c6c1021d7709be799c1d2c5b3bf3016 (diff) |
vnext: /api/v2/
Diffstat (limited to 'vnext/server')
-rw-r--r-- | vnext/server/index.js | 8 |
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) |