mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
24 lines
442 B
Go
24 lines
442 B
Go
package controlers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func GetThreads(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{"route": "get threads"})
|
|
}
|
|
|
|
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"})
|
|
}
|