1
0

Add endpoint to remove a list background

This commit is contained in:
kolaente
2021-03-21 17:49:14 +01:00
parent 9d0dcb8d7d
commit ee436efba3
6 changed files with 195 additions and 20 deletions

View File

@ -576,6 +576,7 @@ func registerAPIRoutes(a *echo.Group) {
// List Backgrounds
if config.BackgroundsEnabled.GetBool() {
a.GET("/lists/:list/background", backgroundHandler.GetListBackground)
a.DELETE("/lists/:list/background", backgroundHandler.RemoveListBackground)
if config.BackgroundsUploadEnabled.GetBool() {
uploadBackgroundProvider := &backgroundHandler.BackgroundProvider{
Provider: func() background.Provider {