mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-12 13:46:51 +00:00
move auth to service layer
This commit is contained in:
parent
876d54d7bb
commit
b073844772
4 changed files with 4 additions and 4 deletions
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"github.com/labstack/echo-contrib/session"
|
"github.com/labstack/echo-contrib/session"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
|
|
||||||
"github.com/rjNemo/rentease/internal/auth"
|
|
||||||
"github.com/rjNemo/rentease/internal/constant"
|
"github.com/rjNemo/rentease/internal/constant"
|
||||||
|
"github.com/rjNemo/rentease/internal/service/auth"
|
||||||
"github.com/rjNemo/rentease/internal/view"
|
"github.com/rjNemo/rentease/internal/view"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@ import (
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/labstack/echo/v4/middleware"
|
"github.com/labstack/echo/v4/middleware"
|
||||||
|
|
||||||
"github.com/rjNemo/rentease/internal/auth"
|
|
||||||
"github.com/rjNemo/rentease/internal/booking"
|
"github.com/rjNemo/rentease/internal/booking"
|
||||||
"github.com/rjNemo/rentease/internal/config"
|
"github.com/rjNemo/rentease/internal/config"
|
||||||
|
"github.com/rjNemo/rentease/internal/service/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
|
|
|
||||||
4
main.go
4
main.go
|
|
@ -11,13 +11,13 @@ import (
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
"github.com/getsentry/sentry-go"
|
||||||
|
|
||||||
"github.com/rjNemo/rentease/internal/auth"
|
|
||||||
"github.com/rjNemo/rentease/internal/booking"
|
"github.com/rjNemo/rentease/internal/booking"
|
||||||
"github.com/rjNemo/rentease/internal/config"
|
"github.com/rjNemo/rentease/internal/config"
|
||||||
"github.com/rjNemo/rentease/internal/driver/calendar"
|
"github.com/rjNemo/rentease/internal/driver/calendar"
|
||||||
"github.com/rjNemo/rentease/internal/driver/database"
|
"github.com/rjNemo/rentease/internal/driver/database"
|
||||||
"github.com/rjNemo/rentease/internal/driver/pdf"
|
"github.com/rjNemo/rentease/internal/driver/pdf"
|
||||||
"github.com/rjNemo/rentease/internal/server"
|
"github.com/rjNemo/rentease/internal/server"
|
||||||
|
"github.com/rjNemo/rentease/internal/service/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed assets
|
//go:embed assets
|
||||||
|
|
@ -70,7 +70,7 @@ func run(c context.Context, getEnv func(string) string) error {
|
||||||
getEnv("HTMLDOCS_KEY"),
|
getEnv("HTMLDOCS_KEY"),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error starting pdf service %s", err)
|
return fmt.Errorf("error starting pdf client %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// build booking service
|
// build booking service
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue