17 lines
390 B
Go
17 lines
390 B
Go
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,
|
|
DemoMode: ac.Config.DemoMode,
|
|
DemoUsername: ac.Config.DemoUsername,
|
|
})
|
|
}
|