20 lines
347 B
Go
20 lines
347 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/labstack/gommon/log"
|
|
)
|
|
|
|
func testService(c *gin.Context) {
|
|
log.Debug("Test was successful.")
|
|
c.JSON(http.StatusOK, gin.H{"message": "Hello World!"})
|
|
}
|
|
|
|
func claimsByBarcode(c *gin.Context) {
|
|
system := c.DefaultQuery("system", "upc")
|
|
barcode := c.Query("barcode")
|
|
|
|
}
|