Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Updates webhook for refactored Evernote syncing.
Browse files Browse the repository at this point in the history
  • Loading branch information
joegatt committed Mar 11, 2013
1 parent ddc78df commit 91ddb6a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
match 'auth/failure' => 'cloud_services#auth_failure'
match 'auth/:provider/callback' => 'cloud_services#auth_callback'

get 'webhooks/evernote_note' => 'cloud_notes#update_cloud'
get 'webhooks/evernote_note' => 'cloud_notes#add_evernote_task'

get 'notes/:id/v/:sequence' => 'notes#version', :id => /\d+/, :sequence => /\d+/, :as => :note_version
get 'notes/:id' => 'notes#show', :id => /\d+/, :as => :note
Expand All @@ -20,18 +20,16 @@
get 'tags/:slug' => 'tags#show', :slug => /[\_a-z\d\-]+/, :as => :tag
get 'tags' => 'tags#index'

# Redirect downloads though they should never reash here

get 'resources/cut/(:file_name)-(:aspect_x)-(:aspect_y)-(:width)-(:snap)-(:gravity)-(:effects)' => 'resources#cut',
:as => :cut_resource,
:aspect_x => /\d+/,
:aspect_y => /\d+/,
:width => /\d+/,
:snap => /[01]/,
:gravity => /0|c|n|ne|w|se|s|sw|w|nw/,
:constraints => {:format => /(gif|jpg|jpeg|png)/}
:constraints => { :format => /(gif|jpg|jpeg|png)/ }

resources :cloud_notes, only: [:update_cloud]
resources :cloud_notes, only: [:add_evernote_task]

resources :cloud_services, only: [:auth_callback, :auth_failure]
end

0 comments on commit 91ddb6a

Please sign in to comment.