From 0c8aac72cb978328df9c30f055c50949eeaf56bc Mon Sep 17 00:00:00 2001 From: rick Date: Tue, 14 Feb 2012 15:47:58 -0700 Subject: [PATCH] add action for deleting user --- lib/chat_gram/app.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/chat_gram/app.rb b/lib/chat_gram/app.rb index e9b5a21..096907f 100644 --- a/lib/chat_gram/app.rb +++ b/lib/chat_gram/app.rb @@ -43,6 +43,11 @@ module Views redirect "/users" end + delete '/users/:username' do + settings.model.remove params[:username] + 'ok' + end + # This is the endpoint to provide start the OAuth authorization process. # # See http://instagram.com/developer/auth/