Logout is now a get req

master
E. Almqvist 3 years ago
parent 5d4ece4619
commit 7d0b3acca0
  1. 19
      src/app.rb
  2. BIN
      src/public/avatars/1.png

@ -92,12 +92,11 @@ get "/profile/:id/rep" do
end
end
# Settings
# User stuff
get "/settings" do
serve :"user/settings"
end
# API stuff
post "/register" do
email = params[:email]
name = params[:name]
@ -128,7 +127,7 @@ post "/login" do
end
end
post "/user/logout" do
get "/logout" do
session.clear
redirect "/"
end
@ -150,3 +149,17 @@ post "/user/update" do
redirect "/settings"
end
# Auction stuff
get "/auction" do
serve :"auction/index"
end
get "/auction/view/:id" do
id = params[:id].to_i
serve :"auction/view"
end
get "/auction/post" do
serve :"auction/new"
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Loading…
Cancel
Save