19 lines
370 B
Crystal
19 lines
370 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 SignIn::New
|
|
#
|
|
# Or maybe show signed out users a marketing page:
|
|
#
|
|
# html Marketing::IndexPage
|
|
redirect SignIn::New
|
|
end
|
|
end
|
|
end
|