Chapa Sigmóide. Redirect to home page

This commit is contained in:
Mateus Cezário Barreto 2025-11-18 23:46:31 -03:00
commit ae5d498d6a

4
app.rb
View file

@ -20,6 +20,10 @@ class TonTonWeb::App < Sinatra::Base
markdown request.path_info.to_sym, layout_engine: :erb, layout: true markdown request.path_info.to_sym, layout_engine: :erb, layout: true
end end
get '/chapa-sigmoide' do
redirect "/chapa-sigmoide/readme.markdown"
end
get '/chapa-sigmoide/:name' do get '/chapa-sigmoide/:name' do
if request.path_info.end_with? '.markdown' if request.path_info.end_with? '.markdown'
markdown request.path_info.sub('.markdown', '').to_sym, layout_engine: :erb, layout: :chapa_sigmoide markdown request.path_info.sub('.markdown', '').to_sym, layout_engine: :erb, layout: :chapa_sigmoide