diff options
author | Azul <azul@leap.se> | 2012-06-26 17:43:50 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-06-26 17:43:50 +0200 |
commit | 18ff58e74f9dce2531d3f68f1d2aeecada9ac73f (patch) | |
tree | 638c7c01648905b97f3147a244129ee430b354cc /http-srp.rb | |
parent | d0f10aab67ab679b17bfad76b242ecf7fc7177f6 (diff) |
using layout in the sinatra app
Diffstat (limited to 'http-srp.rb')
-rw-r--r-- | http-srp.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/http-srp.rb b/http-srp.rb index f57a6e1..ab1a4f4 100644 --- a/http-srp.rb +++ b/http-srp.rb @@ -34,12 +34,20 @@ get '/' do erb :index end +get '/signup' do + erb :signup +end + post '/signup' do @user = User.current @user.signup!(params) redirect '/' end +get '/login' do + erb :login +end + post '/login' do @user = User.current @user.login!(params) |