login & registration now functional

This commit is contained in:
Edin Dazdarevic
2015-03-03 19:11:38 +01:00
parent 4befef5bf4
commit 028bf79617
8 changed files with 189 additions and 71 deletions

View File

@@ -1,4 +1,8 @@
post '/user/logout' do
response.delete_cookie("ribica_auth", :path => "/")
end
post '/user/login' do
request.body.rewind
login_details = JSON.parse(request.body.read)