Skip to content

Commit

Permalink
fix: get remaja by posyandu (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
fathoor committed Feb 1, 2024
1 parent 590a05d commit cb005c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module/remaja/controller/remaja_controller_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func (controller *remajaControllerImpl) Route(app *fiber.App) {
bidan := app.Group("/v1/remaja", middleware.Authenticate("bidan"))
bidan.Post("/", controller.Create)
bidan.Get("/", controller.GetAll)
bidan.Get("/posyandu/:id", controller.GetByPosyanduID)
bidan.Get("/:id", controller.GetByID)
bidan.Put("/:id", controller.UpdateKader)
bidan.Delete("/:id", controller.Delete)
Expand All @@ -27,6 +26,9 @@ func (controller *remajaControllerImpl) Route(app *fiber.App) {
kader.Get("/", controller.GetAll)
kader.Get("/:id", controller.GetByID)
kader.Put("/:id", controller.Update)

remaja := app.Group("/v1/remaja", middleware.Authenticate("public"))
remaja.Get("/posyandu/:id", controller.GetByPosyanduID)
}

func (controller *remajaControllerImpl) Create(ctx *fiber.Ctx) error {
Expand Down

0 comments on commit cb005c7

Please sign in to comment.