mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
404 the surf page for now
This commit is contained in:
parent
29d65b4d16
commit
b3838f2976
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
get '/surf/?' do
|
get '/surf/?' do
|
||||||
|
not_found # 404 for now
|
||||||
@page = params[:page].to_i || 1
|
@page = params[:page].to_i || 1
|
||||||
params.delete 'tag' if params[:tag].nil? || params[:tag].strip.empty?
|
params.delete 'tag' if params[:tag].nil? || params[:tag].strip.empty?
|
||||||
site_dataset = browse_sites_dataset
|
site_dataset = browse_sites_dataset
|
||||||
|
@ -11,6 +12,7 @@ get '/surf/?' do
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/surf/:username' do |username|
|
get '/surf/:username' do |username|
|
||||||
|
not_found # 404 for now
|
||||||
@site = Site.select(:id, :username, :title, :domain, :views, :stripe_customer_id).where(username: username).first
|
@site = Site.select(:id, :username, :title, :domain, :views, :stripe_customer_id).where(username: username).first
|
||||||
not_found if @site.nil?
|
not_found if @site.nil?
|
||||||
@title = @site.title
|
@title = @site.title
|
||||||
|
|
Loading…
Add table
Reference in a new issue