lib/mutx/routes.rb in mutx-0.2.4 vs lib/mutx/routes.rb in mutx-0.2.5

- old
+ new

@@ -46,16 +46,18 @@ on('api') { run Mutx::Routes::Api::Routes } on('logs') { run Mutx::Routes::Logs::Routes } on('message') { run Mutx::Routes::Message::Routes } on('help') { run Mutx::Routes::Help::Routes } - on get do + on post do on "pull" do #Check for updates on the branch and make a pull if its outdated Mutx::Support::Git.pull unless Mutx::Support::Git.up_to_date? res.redirect "/tasks" end + end + on get do on "logout" do $result = nil $result = false if env["SERVER_NAME"].eql? "localhost" $result = false \ No newline at end of file