Added list import preview

This commit is contained in:
2017-07-03 19:33:52 +02:00
parent 4f6ffd969d
commit 7262f4db7b
7 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package listimport
import (
"net/http"
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils"
)
// Get ...
func Get(ctx *aero.Context) string {
user := utils.GetUser(ctx)
if user == nil {
return ctx.Error(http.StatusBadRequest, "Not logged in", nil)
}
return ctx.HTML(components.ImportLists(user))
}