add logger, rearrange database initialization
This commit is contained in:
parent
d26e7b8345
commit
735de8d657
7 changed files with 131 additions and 14 deletions
|
@ -1,8 +1,18 @@
|
|||
package main
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func main() {
|
||||
router := gin.Default()
|
||||
router.GET("/test", runTest)
|
||||
|
||||
// Search for item info
|
||||
router.GET("/test", runTest)
|
||||
// Update item info
|
||||
router.GET("/test", runTest)
|
||||
// Add new item info
|
||||
|
||||
// Delete item (debug)
|
||||
|
||||
router.Run("localhost:8080")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue