luckybooru/src/actions/home/index.cr

19 lines
372 B
Crystal

class Home::Index < BrowserAction
include Auth::AllowGuests
get "/" do
if current_user?
redirect Me::Show
else
# When you're ready change this line to:
#
# redirect SignIns::New
#
# Or maybe show signed out users a marketing page:
#
# html Marketing::IndexPage
redirect SignIns::New
end
end
end