refactor: use a hook for checking sign in status in the backend

This commit is contained in:
Stavros
2025-01-19 23:00:27 +02:00
parent b8a134ed12
commit d0c1aae1e7
6 changed files with 77 additions and 36 deletions

View File

@@ -25,4 +25,9 @@ type Config struct {
RootURL string `validate:"required,url" mapstructure:"root-url"`
AppURL string `validate:"required,url" mapstructure:"app-url"`
Users string `validate:"required" mapstructure:"users"`
}
type UserContext struct {
Username string
IsLoggedIn bool
}