about summary refs log tree commit diff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-04-20 18:25:18 +0200
committerGitHub <noreply@github.com>2020-04-20 18:25:18 +0200
commit60f8a63a76f7c866b5338c33a8b897ba022368ca (patch)
treeb816c0e92ade09712e9bcce29716e762f38769c1 /config/routes.rb
parentd5530827c984238f93100ee737ed209d61e316c0 (diff)
parent221ea4787fe0caf0f8a3238ab95e97aaac8fe360 (diff)
Merge pull request #1320 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 450d3222f..2ebe12f5c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -100,7 +100,9 @@ Rails.application.routes.draw do
   get '/settings', to: redirect('/settings/profile')
 
   namespace :settings do
-    resource :profile, only: [:show, :update]
+    resource :profile, only: [:show, :update] do
+      resources :pictures, only: :destroy
+    end
 
     get :preferences, to: redirect('/settings/preferences/appearance')