Skip to content

Commit

Permalink
wip: home controller
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie committed Feb 21, 2024
1 parent 7b28aeb commit c4e0cbd
Show file tree
Hide file tree
Showing 10 changed files with 782 additions and 895 deletions.
6 changes: 1 addition & 5 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/zeiss/service-lens/internal/adapters"
"github.com/zeiss/service-lens/internal/configs"
"github.com/zeiss/service-lens/internal/controllers"
"github.com/zeiss/service-lens/internal/services"

"github.com/katallaxie/pkg/logger"
Expand Down Expand Up @@ -66,11 +65,8 @@ func run(ctx context.Context) error {
return err
}

pc := controllers.NewProfilesController(db)
lc := controllers.NewLensesController(db)

srv, _ := server.WithContext(ctx)
webSrv := services.New(cfg, pc, lc, db)
webSrv := services.New(cfg, db)

srv.Listen(webSrv, true)
if err := srv.Wait(); err != nil {
Expand Down
20 changes: 0 additions & 20 deletions internal/adapters/handlers/index.go

This file was deleted.

Loading

0 comments on commit c4e0cbd

Please sign in to comment.