forked from errbit/errbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.rb
54 lines (44 loc) · 1.24 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Errbit::Application.routes.draw do
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
# Hoptoad Notifier Routes
match '/notifier_api/v2/notices' => 'notices#create'
match '/locate/:id' => 'notices#locate', :as => :locate
match '/deploys.txt' => 'deploys#create'
resources :notices, :only => [:show]
resources :deploys, :only => [:show]
resources :users do
member do
delete :unlink_github
end
end
resources :errs, :only => [:index] do
collection do
post :destroy_several
post :resolve_several
post :unresolve_several
post :merge_several
post :unmerge_several
get :all
end
end
resources :apps do
resources :errs do
resources :notices
resources :comments, :only => [:create, :destroy]
member do
put :resolve
put :unresolve
post :create_issue
delete :unlink_issue
end
end
resources :deploys, :only => [:index]
end
namespace :api do
namespace :v1 do
resources :problems, :only => [:index], :defaults => { :format => 'json' }
resources :notices, :only => [:index], :defaults => { :format => 'json' }
end
end
root :to => 'apps#index'
end