add routers themes

This commit is contained in:
张超
2025-04-09 16:56:05 +08:00
parent 577cd10161
commit 33cb413a12
14 changed files with 275 additions and 118 deletions

13
controllers/showpost.go Normal file
View File

@@ -0,0 +1,13 @@
package controllers
import (
"net/http"
"github.com/gin-gonic/gin"
)
func ShowPost(c *gin.Context) {
c.HTML(http.StatusOK, "home.html", gin.H{
"title": "首页",
})
}