diff options
author | Vitaly Takmazov | 2024-08-07 18:51:24 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-08-07 20:02:02 +0300 |
commit | 1dd0547e3fd8d4cacc125def5800c9019dd72cef (patch) | |
tree | 553bf65cbb873b117dbedf7f00ff905192314959 /vnext/server/index.js | |
parent | 0ac9aa79aeb618a18d0e5032059c6d0dbc80ae17 (diff) |
vnext: `releases` middleware
* Help android app to find upgrade path
Diffstat (limited to 'vnext/server/index.js')
-rw-r--r-- | vnext/server/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vnext/server/index.js b/vnext/server/index.js index 16abc8db..692fbd76 100644 --- a/vnext/server/index.js +++ b/vnext/server/index.js @@ -9,6 +9,7 @@ import serverRenderer from './middleware/renderer' import event from './middleware/event' import oembed from './middleware/oembed' import urlExpand from './middleware/urlexpand' +import releases from './middleware/android' const PORT = process.env.LISTEN_PORT || 8081 import path from 'path' @@ -23,6 +24,7 @@ const router = express.Router() router.post('/api/v2/sender', event) router.get('/api/v2/oembed', oembed) router.get('/api/v2/urlexpand', urlExpand) +router.get('/api/apps/android/releases', releases) const durov_webhook = webhookPath() if (durov_webhook) { |