21 lines
364 B
Go
21 lines
364 B
Go
package application
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func (application *Application) bindRoutes() {
|
|
|
|
router := gin.Default()
|
|
|
|
router.GET("/", application.TestHandler)
|
|
|
|
claims := router.Group("/claims/:system/:barcode")
|
|
{
|
|
claims.GET("", application.GetClaimsHandler)
|
|
claims.POST("", application.PostClaimHandler)
|
|
}
|
|
|
|
router.Run("localhost:8080")
|
|
}
|