forked from nutomic/lemmy
use camelcase for json keys
This commit is contained in:
parent
fb07ca53ee
commit
d9d76ead94
1 changed files with 3 additions and 3 deletions
|
@ -36,9 +36,9 @@ pub fn node_info() -> HttpResponse<Body> {
|
||||||
"users": {
|
"users": {
|
||||||
"total": site_view.number_of_users
|
"total": site_view.number_of_users
|
||||||
},
|
},
|
||||||
"local_posts": site_view.number_of_posts,
|
"localPosts": site_view.number_of_posts,
|
||||||
"local_comments": site_view.number_of_comments,
|
"localComments": site_view.number_of_comments,
|
||||||
"open_registrations": true,
|
"openRegistrations": true,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return HttpResponse::Ok()
|
return HttpResponse::Ok()
|
||||||
|
|
Loading…
Reference in a new issue