mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
only html tutorial
This commit is contained in:
parent
c686dd026f
commit
b4caf44af4
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue