Add: Template Config options & comments;

This commit is contained in:
$(pass /github/name)
2024-07-18 12:25:51 +02:00
parent f4a9166bee
commit 602ac0fef0
5 changed files with 46 additions and 42 deletions

View File

@@ -112,29 +112,3 @@ func (uc *UserController) VerifyMailHandler(c *gin.Context) {
c.HTML(http.StatusOK, "verification_success.html", gin.H{"FirstName": user.FirstName})
}
/* func (uc *UserController) LoginUser(w http.ResponseWriter, r *http.Request) {
var credentials struct {
Email string `json:"email"`
Password string `json:"password"`
}
user, err := services.UserService.AuthenticateUser(credentials.Email, credentials.Password)
if err != nil {
http.Error(w, err.Error(), http.StatusUnauthorized)
return
}
json.NewEncoder(w).Encode(user)
}
*/
/* func (uc *UserController) GetUserID(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
id, err := strconv.Atoi(vars["id"])
if err != nil {
http.Error(w, "Invalid user ID", http.StatusBadRequest)
return
}
user, err := services.UserService.GetUserByID(id)
if err != nil {
http.Error(w, "User not found: "+err.Error(), http.StatusNotFound)
}
} */