1. Koen Van der Auwera
  2. amanda

Commits

Koen Van der Auwera  committed dd61216

set refresh path as env var

  • Participants
  • Parent commits 8e6df94
  • Branches master

Comments (0)

Files changed (1)

File amanda.rb

View file
     end
   end
 
-  class Refresh < R '/refresh'
+  class Refresh < R ENV["REFRESH_PATH"]
     def get
       $store.refresh_from_dropbox
       redirect "/"
       if session = @state["dropbox"]
         session.get_access_token
         $store.dropbox_session(session)
-        redirect "/refresh"
+        redirect ENV["REFRESH_PATH"]
       else
         "TUUT"
       end