use camelcase for json keys

This commit is contained in:
Felix Ableitner 2019-11-21 15:51:57 +01:00
parent 9ac1beae82
commit 39565fecfb

View File

@ -36,9 +36,9 @@ pub fn node_info() -> HttpResponse<Body> {
"users": {
"total": site_view.number_of_users
},
"local_posts": site_view.number_of_posts,
"local_comments": site_view.number_of_comments,
"open_registrations": true,
"localPosts": site_view.number_of_posts,
"localComments": site_view.number_of_comments,
"openRegistrations": true,
}
});
return HttpResponse::Ok()