Added list import preview
This commit is contained in:
20
pages/listimport/listimport.go
Normal file
20
pages/listimport/listimport.go
Normal 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))
|
||||
}
|
Reference in New Issue
Block a user