mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Merge from master
This commit is contained in:
@@ -22,7 +22,8 @@ func (r *queryResolver) Directories(ctx context.Context, path *string) ([]string
|
||||
|
||||
func makeConfigResult() *models.ConfigResult {
|
||||
return &models.ConfigResult{
|
||||
General: makeConfigGeneralResult(),
|
||||
General: makeConfigGeneralResult(),
|
||||
Interface: makeConfigInterfaceResult(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,3 +36,12 @@ func makeConfigGeneralResult() *models.ConfigGeneralResult {
|
||||
Password: config.GetPasswordHash(),
|
||||
}
|
||||
}
|
||||
|
||||
func makeConfigInterfaceResult() *models.ConfigInterfaceResult {
|
||||
css := config.GetCSS()
|
||||
cssEnabled := config.GetCSSEnabled()
|
||||
return &models.ConfigInterfaceResult{
|
||||
CSS: &css,
|
||||
CSSEnabled: &cssEnabled,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user