Skip to content

Commit

Permalink
this probably gets rid of rss.
Browse files Browse the repository at this point in the history
also, for the 1 person probably using rss, if you do read this commit,
fuck you
  • Loading branch information
twnlink committed Apr 26, 2024
1 parent 210dc3d commit 6c75c84
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
12 changes: 0 additions & 12 deletions src/rethink.cr
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,6 @@ get "/~:name" do |ctx|
render "src/views/thoughts.ecr"
end

get "/~:name/feed.xml" do |ctx|
ctx.response.headers["Content-Type"] = "application/atom+xml"
name = ctx.params.url["name"]
begin
thoughts = getThoughtsByUser(name)
rescue ex
end

halt ctx, status_code: 404, response: "User not found" if thoughts.nil?

render "src/views/feed.ecr"
end

get "/" do
render "public/index.html"
Expand Down
27 changes: 0 additions & 27 deletions src/views/feed.ecr

This file was deleted.

0 comments on commit 6c75c84

Please sign in to comment.