move auth to service layer

This commit is contained in:
Ruidy 2024-09-12 22:10:05 +02:00
parent 876d54d7bb
commit b073844772
No known key found for this signature in database
GPG key ID: E00F51288CB857CC
4 changed files with 4 additions and 4 deletions

View file

@ -7,8 +7,8 @@ import (
"github.com/labstack/echo-contrib/session"
"github.com/labstack/echo/v4"
"github.com/rjNemo/rentease/internal/auth"
"github.com/rjNemo/rentease/internal/constant"
"github.com/rjNemo/rentease/internal/service/auth"
"github.com/rjNemo/rentease/internal/view"
)

View file

@ -17,9 +17,9 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/rjNemo/rentease/internal/auth"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/config"
"github.com/rjNemo/rentease/internal/service/auth"
)
type Server struct {

View file

@ -11,13 +11,13 @@ import (
"github.com/getsentry/sentry-go"
"github.com/rjNemo/rentease/internal/auth"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/config"
"github.com/rjNemo/rentease/internal/driver/calendar"
"github.com/rjNemo/rentease/internal/driver/database"
"github.com/rjNemo/rentease/internal/driver/pdf"
"github.com/rjNemo/rentease/internal/server"
"github.com/rjNemo/rentease/internal/service/auth"
)
//go:embed assets
@ -70,7 +70,7 @@ func run(c context.Context, getEnv func(string) string) error {
getEnv("HTMLDOCS_KEY"),
)
if err != nil {
return fmt.Errorf("error starting pdf service %s", err)
return fmt.Errorf("error starting pdf client %s", err)
}
// build booking service