mirror of
https://github.com/neocities/neocities.git
synced 2025-07-20 17:46:05 +02:00
RSS/Atom feed for sites
This commit is contained in:
parent
b47997a030
commit
5edeba9495
3 changed files with 30 additions and 1 deletions
6
app.rb
6
app.rb
|
@ -75,6 +75,12 @@ get '/profile_mockup' do
|
|||
erb :'profile_mockup', locals: {site: current_site}
|
||||
end
|
||||
|
||||
get '/site/:sitename.rss' do |sitename|
|
||||
site = Site[username: sitename]
|
||||
content_type :xml
|
||||
site.to_rss.to_xml
|
||||
end
|
||||
|
||||
get '/site/:sitename' do |sitename|
|
||||
site = Site[username: sitename]
|
||||
not_found if(site.nil?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue