github.com/ngocphuongnb/tetua@v0.0.7-alpha/packages/fiberserver/route.go (about)

     1  package fiberserver
     2  
     3  import "github.com/gofiber/fiber/v2"
     4  
     5  type Route struct {
     6  	*fiber.Route
     7  }
     8  
     9  func (r *Route) Method() string {
    10  	return r.Route.Method
    11  }
    12  
    13  func (r *Route) Path() string {
    14  	return r.Route.Path
    15  }
    16  
    17  func (r *Route) Name() string {
    18  	return r.Route.Name
    19  }