19 lines
325 B
Go
19 lines
325 B
Go
package application
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// TODO: Service should get moved somewhere else. Not sure on naming.
|
|
func (application *Application) bindRoutes() {
|
|
|
|
router := gin.Default()
|
|
|
|
router.Group("/claims")
|
|
{
|
|
router.GET("/:barcode", application.GetClaimsHandler)
|
|
}
|
|
|
|
router.Run("localhost:8080")
|
|
}
|