Added welcome page

This commit is contained in:
2018-11-15 12:42:10 +09:00
parent 085417edce
commit 1ef1c55e49
19 changed files with 153 additions and 30 deletions
auth
pages
embed
home
index/coreroutes
listimport
listimport.pixy
listimportanilist
listimportkitsu
listimportmyanimelist
settings
welcome
scripts
styles
utils/routetests

@ -14,5 +14,9 @@ func Get(ctx *aero.Context) string {
return frontpage.Get(ctx)
}
if !user.HasBasicInfo() {
return utils.SmartRedirect(ctx, "/welcome")
}
return utils.SmartRedirect(ctx, "/+"+user.Nick+"/animelist/watching")
}