Add a simple /abuse URl for redirects

This commit is contained in:
R. Tyler Croy 2017-12-21 07:40:36 -08:00
parent 0e8dde9480
commit a2131dddd8
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 17 additions and 0 deletions

View File

@ -67,6 +67,10 @@ module CodeValet
haml :doc, :layout => :_base
end
get '/abuse' do
haml :abuse, :layout => :_base
end
get '/profile' do
unless env['warden'].user
redirect to('/')

13
webapp/views/abuse.haml Normal file
View File

@ -0,0 +1,13 @@
.container
.col-md-10
.row
%h2
Whoa there pal!
.container
.row
%p
If you have been redirected this page, it may be because you have
attempted to access a URL within Code Valet which has been
discontinued.
%p
Sorry about that, there are only so many bananas to go around.