20 lines
362 B
Go
20 lines
362 B
Go
package main
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func main() {
|
|
router := gin.Default()
|
|
router.GET("/test", runTest)
|
|
|
|
// Search for item info
|
|
router.GET("/claims/{barcode}", runTest)
|
|
router.DELETE("/claims/{barcode}", runTest)
|
|
// Update item info
|
|
router.GET("/test", runTest)
|
|
// Add new item info
|
|
|
|
// Delete item (debug)
|
|
|
|
router.Run("localhost:8080")
|
|
}
|