added basic http routing; fixed git integration

This commit is contained in:
lourenco
2025-09-25 12:22:10 +02:00
parent 97adcc923c
commit 9696cafce5
3 changed files with 35 additions and 26 deletions

11
pkg/http/http.go Normal file
View 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()
}