removed not used placeholders

This commit is contained in:
Jan Barfuss 2024-12-20 15:30:37 +01:00
parent 254bf10054
commit 2e16304fac
2 changed files with 3 additions and 34 deletions

View File

@ -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) {

View File

@ -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",
})
}