1Rails.application.routes.draw do |
|
2 # The priority is based upon order of creation: first created -> highest priority. |
|
3 # See how all your routes lay out with "rake routes". |
|
5 # You can have the root of your site routed with "root" |
|
6 # root 'welcome#index' |
|
8 # Example of regular route: |
|
9 # get 'products/:id' => 'catalog#view' |
|
11 # Example of named route that can be invoked with purchase_url(id: product.id) |
|
12 # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase |
|
14 # Example resource route (maps HTTP verbs to controller actions automatically): |
|
15 # resources :products |
|
17 # Example resource route with options: |
|
18 # resources :products do |
|
19 # member do |
|
20 # get 'short' |
|
21 # post 'toggle' |
|
22 # end |
|
23 # |
|
24 # collection do |
|
25 # get 'sold' |
|
26 # end |
|
27 # end |
|
29 # Example resource route with sub-resources: |
|
30 # resources :products do |
|
31 # resources :comments, :sales |
|
32 # resource :seller |
|
33 # end |
|
35 # Example resource route with more complex sub-resources: |
|
36 # resources :products do |
|
37 # resources :comments |
|
38 # resources :sales do |
|
39 # get 'recent', on: :collection |
|
40 # end |
|
41 # end |
|
43 # Example resource route with concerns: |
|
44 # concern :toggleable do |
|
45 # post 'toggle' |
|
46 # end |
|
47 # resources :posts, concerns: :toggleable |
|
48 # resources :photos, concerns: :toggleable |
|
50 # Example resource route within a namespace: |
|
51 # namespace :admin do |
|
52 # # Directs /admin/products/* to Admin::ProductsController |
|
53 # # (app/controllers/admin/products_controller.rb) |
|
54 # resources :products |
|
55 # end |
|
57 get 'users/emailExist' => 'users#emailExist' |
|
58 get 'users/usernameExist' => 'users#usernameExist' |
|
59 post 'users' => 'users#create' |
|
60 patch 'user/current' => 'users#update' |
|
62 post 'sessions' => 'sessions#create' |
|
63 delete 'session' => 'sessions#destroy' |
|
64 get 'session' => 'sessions#show' |
|
|
|
66 post 'shares' => 'shares#create' |
|
67 get 'shares' => 'shares#getShareList' |
|
69 get 'projects' => 'projects#index' |
|
70 post 'projects' => 'projects#create' |
|
71 patch 'projects' => 'projects#update' |
|
72 post 'projects/users' => 'projects#addUsers' |
|
73 delete 'projects/users' => 'projects#deleteUsers' |
|
74 get 'projects/detail' => 'projects#detail' |
|
76 get 'notes/list' => 'notes#getNotesList' |
|
78 get 'missions' => 'missions#getlist' |
|
79 get 'missions/detail' => 'missions#detail' |
|
80 post 'missions/comments' => 'missions#commentPublish' |
|
81 post 'missions' => 'missions#create' |
|
82 patch 'missions/detail' => 'missions#update' |
|
84end |