Implemented pushsubscriptionchange

This commit is contained in:
2017-07-19 03:22:50 +02:00
parent 01dfb96363
commit 48a792a100
3 changed files with 51 additions and 1 deletions

17
pages/me/me.go Normal file
View File

@ -0,0 +1,17 @@
package me
import (
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/utils"
)
// Get ...
func Get(ctx *aero.Context) string {
user := utils.GetUser(ctx)
if user == nil {
return ctx.JSON(nil)
}
return ctx.JSON(user)
}