Add config to disable registration

This commit is contained in:
2026-02-24 00:00:35 +01:00
parent 67b305786b
commit 00a5a6c045
7 changed files with 72 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
package routes
import (
"net/http"
"git.artlef.fr/PersonalLibraryManager/internal/appcontext"
"git.artlef.fr/PersonalLibraryManager/internal/dto"
)
func GetAppInfo(ac appcontext.AppContext) {
ac.C.JSON(http.StatusOK, dto.AppInfo{RegistrationDisabled: ac.Config.DisableRegistration})
}