音楽で楽しみましょう!-Let's have fun with music!-
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
parent
7c3206bf83
commit
54c6d22102
517 changed files with 637 additions and 639 deletions
17
api/funquail_api/common/dynamic_preferences_registry.py
Normal file
17
api/funquail_api/common/dynamic_preferences_registry.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from dynamic_preferences import types
|
||||
from dynamic_preferences.registries import global_preferences_registry
|
||||
|
||||
common = types.Section("common")
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class APIAutenticationRequired(types.BooleanPreference):
|
||||
section = common
|
||||
name = "api_authentication_required"
|
||||
verbose_name = "API Requires authentication"
|
||||
default = True
|
||||
help_text = (
|
||||
"If disabled, anonymous users will be able to query the API "
|
||||
"and access music data (as well as other data exposed in the API "
|
||||
"without specific permissions)."
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue