18 lines
242 B
Go
Raw Normal View History

2017-07-19 01:22:50 +00:00
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)
}