```ruby
get '/signin' do
  erb :'auth/signin'
end

post '/signin' do
  puts params
  redirect '/'
end

post '/signup' do
  user = User.new(params[:user])
  if user.save
    session[:user_id] = user.id
    redirect '/'
  else
    redirect '/signin'
  end

end

get '/signout' do
  sessions[:user_id] = nil
end```

Fix bug in GET signout route
user
```ruby
get '/signin' do
  erb :'auth/signin'
end

post '/signin' do
  puts params
  redirect '/'
end

post '/signup' do
  user = User.new(params[:user])
  if user.save
    session[:user_id] = user.id
    redirect '/'
  else
    redirect '/signin'
  end

end

get '/signout' do
  session[:user_id] = nil
  redirect '/'
end```
assistant