mirror of
https://github.com/LeRoid-hub/Bookholder-API.git
synced 2025-01-31 10:44:56 +00:00
32 lines
448 B
Go
32 lines
448 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func getUser(c *gin.Context) {
|
||
|
c.JSON(http.StatusOK, gin.H{
|
||
|
"message": "getUser",
|
||
|
})
|
||
|
}
|
||
|
|
||
|
func newUser(c *gin.Context) {
|
||
|
c.JSON(http.StatusOK, gin.H{
|
||
|
"message": "newUser",
|
||
|
})
|
||
|
}
|
||
|
|
||
|
func updateUser(c *gin.Context) {
|
||
|
c.JSON(http.StatusOK, gin.H{
|
||
|
"message": "updateUser",
|
||
|
})
|
||
|
}
|
||
|
|
||
|
func deleteUser(c *gin.Context) {
|
||
|
c.JSON(http.StatusOK, gin.H{
|
||
|
"message": "deleteUser",
|
||
|
})
|
||
|
}
|