added basic http routing; fixed git integration
This commit is contained in:
11
pkg/http/http.go
Normal file
11
pkg/http/http.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func (c *ginContext) HttpHandler() {
|
||||
r := gin.Default()
|
||||
|
||||
r.GET("/list", g.listPosts())
|
||||
|
||||
r.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user