Skip to content

Commit

Permalink
fix: use meta router
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Aug 24, 2023
1 parent cd67bb4 commit 5609b08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
type Meta struct {
fx.In

Route fiber.Router `name:"internal"`
Route fiber.Router `name:"internal"`
}

func RegisterMeta(c GraphQL) {
func RegisterMeta(c Meta) {
c.Route.Get("/ping", func(c *fiber.Ctx) error {
return c.SendString("pong")
})
Expand Down

0 comments on commit 5609b08

Please sign in to comment.