Skip to content

Commit

Permalink
chore: remove adopt service and handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitiwat-owen committed Jan 2, 2024
1 parent 67e51ce commit 0282674
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 90 deletions.
35 changes: 0 additions & 35 deletions src/app/handler/adopt/adopt.handler.go

This file was deleted.

24 changes: 0 additions & 24 deletions src/app/router/adopt.router.go

This file was deleted.

4 changes: 1 addition & 3 deletions src/app/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type FiberRouter struct {
pet fiber.Router
image fiber.Router
like fiber.Router
adopt fiber.Router
}

type IGuard interface {
Expand Down Expand Up @@ -53,9 +52,8 @@ func NewFiberRouter(authGuard IGuard, conf config.App) *FiberRouter {
pet := GroupWithAuthMiddleware(r, "/pet", authGuard.Use)
image := GroupWithAuthMiddleware(r, "/image", authGuard.Use)
like := GroupWithAuthMiddleware(r, "/like", authGuard.Use)
adopt := GroupWithAuthMiddleware(r, "/adopt", authGuard.Use)

return &FiberRouter{r, auth, user, pet, image, adopt, like}
return &FiberRouter{r, auth, user, pet, image, like}
}

func GroupWithAuthMiddleware(r *fiber.App, path string, middleware func(ctx IContext) error) fiber.Router {
Expand Down
28 changes: 0 additions & 28 deletions src/app/service/adopt/adopt.service.go

This file was deleted.

0 comments on commit 0282674

Please sign in to comment.