mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add /api/v1/stats
This commit is contained in:
parent
0eaf8f38a1
commit
4be82c5ca6
3 changed files with 55 additions and 5 deletions
|
@ -22,6 +22,7 @@ user: String,
|
|||
captcha_enabled: {type: Bool, default: true},
|
||||
login_enabled: {type: Bool, default: true},
|
||||
registration_enabled: {type: Bool, default: true},
|
||||
statistics_enabled: {type: Bool, default: false},
|
||||
admins: {type: Array(String), default: [] of String},
|
||||
})
|
||||
end
|
||||
|
|
|
@ -189,6 +189,11 @@ function update_value(element) {
|
|||
<label for="registration_enabled"><%= translate(locale, "Registration enabled? ") %></label>
|
||||
<input name="registration_enabled" id="registration_enabled" type="checkbox" <% if config.registration_enabled %>checked<% end %>>
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group">
|
||||
<label for="statistics_enabled"><%= translate(locale, "Report statistics? ") %></label>
|
||||
<input name="statistics_enabled" id="statistics_enabled" type="checkbox" <% if config.statistics_enabled %>checked<% end %>>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if env.get? "user" %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue