proof of concept

This commit is contained in:
Cubicroot 2021-06-02 17:46:04 +02:00
parent 6c69be7d34
commit 5be204dc19
4 changed files with 65 additions and 0 deletions

View file

@ -47,6 +47,8 @@ func Create(debug bool, cm *credentials.Manager, db *database.Database, dp *disp
r.POST("/message", auth.RequireApplicationToken(), notificationHandler.CreateNotification)
r.GET("/test", auth.RequireApplicationToken(), notificationHandler.DeleteNotification)
userGroup := r.Group("/user")
userGroup.Use(auth.RequireAdmin())
{