Push notifications

This commit is contained in:
2017-07-14 23:50:34 +02:00
parent 2e504548c4
commit 92a540e024
9 changed files with 276 additions and 18 deletions

View File

@ -31,6 +31,7 @@ import (
"github.com/animenotifier/notify.moe/pages/music"
"github.com/animenotifier/notify.moe/pages/newsoundtrack"
"github.com/animenotifier/notify.moe/pages/newthread"
"github.com/animenotifier/notify.moe/pages/notifications"
"github.com/animenotifier/notify.moe/pages/posts"
"github.com/animenotifier/notify.moe/pages/profile"
"github.com/animenotifier/notify.moe/pages/search"
@ -126,6 +127,9 @@ func configure(app *aero.Application) *aero.Application {
// Browser extension
app.Ajax("/extension/embed", embed.Get)
// API
app.Get("/api/test/notification", notifications.Test)
// Middleware
app.Use(middleware.Log())
app.Use(middleware.Session())