Implement deletion of applications

This commit is contained in:
eikendev 2020-07-26 22:23:13 +02:00
parent 653e57fe03
commit 18d11677ac
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
7 changed files with 80 additions and 9 deletions

View file

@ -29,7 +29,7 @@ type NotificationHandler struct {
// CreateNotification is used to create a new notification for a user.
func (h *NotificationHandler) CreateNotification(ctx *gin.Context) {
notification := model.Notification{}
var notification model.Notification
if success := successOrAbort(ctx, http.StatusBadRequest, ctx.Bind(&notification)); !success {
return