aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/middleware/mastodon.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server/middleware/mastodon.js')
-rw-r--r--vnext/server/middleware/mastodon.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/vnext/server/middleware/mastodon.js b/vnext/server/middleware/mastodon.js
index 3bbad3c4..e29fd736 100644
--- a/vnext/server/middleware/mastodon.js
+++ b/vnext/server/middleware/mastodon.js
@@ -1,8 +1,11 @@
+import { getMonthlyActiveUsers } from '../db/Users'
+
/**
* Return content for embedding
* @type {import('express').RequestParamHandler}
*/
export const instance = async (req, res) => {
+ const activeUsers = await getMonthlyActiveUsers()
res.json({
'domain': 'juick.com',
'title': 'Microblogging service',
@@ -10,6 +13,11 @@ export const instance = async (req, res) => {
'version': '2.x',
'contact': {
'email': 'support@juick.com'
+ },
+ 'usage': {
+ 'users': {
+ 'active_month': activeUsers
+ }
}
})
}