only html tutorial

This commit is contained in:
Kyle Drake 2024-02-20 09:39:05 -06:00
parent c686dd026f
commit b4caf44af4

View file

@ -24,7 +24,7 @@ end
get '/tutorial/:section/?' do
require_login
not_found unless %w{html css js}.include?(params[:section])
not_found unless %w{html}.include?(params[:section])
redirect "/tutorial/#{params[:section]}/1"
end
@ -32,7 +32,7 @@ get '/tutorial/:section/:page/?' do
require_login
@page = params[:page]
not_found unless @page.match?(/\A[1-9]\z|\A10\z/)
not_found unless %w{html css js}.include?(params[:section])
not_found unless %w{html}.include?(params[:section])
@section = params[:section]