micrach/controllers/threads_controller.go

24 lines
430 B
Go
Raw Normal View History

2021-08-26 20:23:55 +03:00
package controlers
import (
"net/http"
"github.com/gin-gonic/gin"
)
func GetThreads(c *gin.Context) {
2021-08-28 17:34:58 +03:00
c.HTML(http.StatusOK, "index.html", nil)
2021-08-26 20:23:55 +03:00
}
func GetThread(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"route": "get thread"})
}
func CreateThread(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"route": "create thread"})
}
func UpdateThread(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"route": "update thread"})
}