mirror of
https://github.com/LeRoid-hub/Bookholder-API.git
synced 2025-01-31 02:34:57 +00:00
removed not used placeholders
This commit is contained in:
parent
254bf10054
commit
2e16304fac
@ -59,10 +59,10 @@ func Run(env map[string]string, db *database.DB) {
|
|||||||
|
|
||||||
//User
|
//User
|
||||||
v1.GET("/User/", checkAuth, getUserProfile)
|
v1.GET("/User/", checkAuth, getUserProfile)
|
||||||
v1.POST("/NewUser", createUser, newUser)
|
v1.POST("/NewUser", createUser)
|
||||||
v1.POST("/AuthenticateUser", authenticateUser)
|
v1.POST("/AuthenticateUser", authenticateUser)
|
||||||
v1.PUT("/UpdateUser/:UserID", checkAuth, updateUser)
|
v1.PUT("/UpdateUser/:UserID", checkAuth)
|
||||||
v1.DELETE("/DeleteUser/:UserID", checkAuth, deleteUser)
|
v1.DELETE("/DeleteUser/:UserID", checkAuth)
|
||||||
}
|
}
|
||||||
|
|
||||||
r.GET("/ping", func(c *gin.Context) {
|
r.GET("/ping", func(c *gin.Context) {
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
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",
|
|
||||||
})
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user