diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-12-11 17:05:12 +0100 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-12-11 17:05:12 +0100 |
commit | 1e45ae2ea3497958b2ea6a20137955cfc3bbc964 (patch) | |
tree | 00af0e28864d79d7a9cbb8b693aff1b397b1a949 /main.go | |
parent | e6ded0d01117c592ec124f3e02d6c89eeafec382 (diff) | |
download | cerrado-1e45ae2ea3497958b2ea6a20137955cfc3bbc964.tar.gz cerrado-1e45ae2ea3497958b2ea6a20137955cfc3bbc964.tar.bz2 cerrado-1e45ae2ea3497958b2ea6a20137955cfc3bbc964.zip |
feat: Add UI/Handler login process
It adds the whole workflow to store and handle login on both UI and
handler level. With that the login information should be available at
any point given the context.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -74,8 +74,7 @@ func run() error { return err } - // checking chroma configurationo - + // checking chroma configuration if _, ok := styles.Registry[configRepo.GetSyntaxHighlight()]; !ok { slog.Warn( "Invalid Syntax highlight selected", @@ -87,8 +86,13 @@ func run() error { // services gitService := service.NewGitService(configRepo) + authService := service.NewAuthService(configRepo) - handler, err := handler.MountHandler(gitService, configRepo) + handler, err := handler.MountHandler( + gitService, + authService, + configRepo, + ) if err != nil { return err } |