OSDN Git Service

add Picture
[pettanr/pettanr.git] / config / routes.rb
index 298471f..79088cb 100644 (file)
@@ -33,7 +33,7 @@ Pettanr::Application.routes.draw do
       delete :destroy
     end
   end
-  resources :speach_balloon_templates do
+  resources :speech_balloon_templates do
     collection do
       get :index
       get :show
@@ -44,27 +44,7 @@ Pettanr::Application.routes.draw do
       delete :destroy
     end
   end
-  resources :speach_templates do
-    collection do
-      get :index
-      get :show
-      get :list
-      get :browse
-    end
-    member do
-    end
-  end
-  resources :balloon_templates do
-    collection do
-      get :index
-      get :show
-      get :list
-      get :browse
-    end
-    member do
-    end
-  end
-  resources :speaches do
+  resources :speeches do
     collection do
       get :list
       get :browse
@@ -80,7 +60,7 @@ Pettanr::Application.routes.draw do
     member do
     end
   end
-  resources :speach_balloons do
+  resources :speech_balloons do
     collection do
       get :list
       get :browse
@@ -102,12 +82,12 @@ Pettanr::Application.routes.draw do
     collection do
       get :index
       get :show
+      get :new
+      post :create
       get :count
       get :list
       get :browse
     end
-    member do
-    end
   end
   resources :original_pictures do
     collection do
@@ -124,6 +104,18 @@ Pettanr::Application.routes.draw do
       delete :destroy
     end
   end
+  resources :original_picture_license_groups do
+    collection do
+      get :new
+      post :create
+    end
+  end
+  resources :standard_licenses do
+    collection do
+      get :new
+      post :create
+    end
+  end
   resources :panels do
     collection do
       get :index
@@ -160,12 +152,21 @@ Pettanr::Application.routes.draw do
       get :browse
     end
   end
+  resources :license_groups do
+    collection do
+      get :index
+      get :show
+      get :list
+      get :browse
+    end
+  end
   resources :original_licenses do
     collection do
       get :index
       get :show
       get :new
       post :create
+      post :import
       get :list
       get :browse
     end