18 lines
240 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 ...
2019-06-01 04:55:49 +00:00
func Get(ctx aero.Context) error {
2017-07-19 01:22:50 +00:00
user := utils.GetUser(ctx)
if user == nil {
return ctx.JSON(nil)
}
return ctx.JSON(user)
}