Skip to content

Commit

Permalink
Outsource business logic to processor file
Browse files Browse the repository at this point in the history
  • Loading branch information
alaust-dev committed Nov 5, 2023
1 parent 892aa1e commit aaded27
Show file tree
Hide file tree
Showing 15 changed files with 874 additions and 724 deletions.
5 changes: 3 additions & 2 deletions api/cmd/content_managing_service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"fmt"

"github.com/NimbusX-CMS/NimbusX/api/internal/api"
"github.com/NimbusX-CMS/NimbusX/api/internal/business_logic"
"github.com/NimbusX-CMS/NimbusX/api/internal/db/multi_db"
"github.com/NimbusX-CMS/NimbusX/api/internal/resources"

"github.com/gin-gonic/gin"
)

Expand All @@ -22,7 +23,7 @@ func main() {
fmt.Println("Error creating tables:", err)
return
}
server := &business_logic.Server{
server := &resources.Server{
DB: db,
}

Expand Down
1 change: 1 addition & 0 deletions api/internal/api/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

313 changes: 0 additions & 313 deletions api/internal/business_logic/server.go

This file was deleted.

Loading

0 comments on commit aaded27

Please sign in to comment.