rails-image-post-solution 0.1.25 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/routes.rb +30 -31
- data/lib/rails_image_post_solution/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21cf30ddd082d430c2fa3970e75b3de50d6cb2971b31a9e01e0e20cca46fc1fb
|
|
4
|
+
data.tar.gz: 1efb01401bde8a221233fab8b32d27f8fb97314e3e7c61e5ca9e184d98af356d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e18c577fab39605d71b399f97663ebed7add09bbf101f57c1e2ad43b72a2641e85ea63bc1841f52e7fb90d8db49d72f85e8421951c169db65629db3571e129c6
|
|
7
|
+
data.tar.gz: 19835241b9c1651a7aec885a0bc721558c7ce0cd42bda78f045f32a84894e28968e8dbe62b9117835dda3e2a65b15e40f9eec88fc98403150c1b9c3aa3ec2ed3
|
data/config/routes.rb
CHANGED
|
@@ -1,42 +1,41 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
RailsImagePostSolution::Engine.routes.draw do
|
|
4
|
-
#
|
|
5
|
-
#
|
|
6
|
-
scope "(:locale)", locale: /[a-z]{2}/ do
|
|
7
|
-
# User-facing report API
|
|
8
|
-
resources :image_reports, only: [ :create ]
|
|
4
|
+
# Locale parameter is handled by the host application at mount level
|
|
5
|
+
# No need for locale scope within the engine itself
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
# User-facing report API
|
|
8
|
+
resources :image_reports, only: [ :create ]
|
|
9
|
+
|
|
10
|
+
# Admin dashboard (engine controllers)
|
|
11
|
+
namespace :admin do
|
|
12
|
+
# Image reports management
|
|
13
|
+
resources :image_reports, only: %i[index show] do
|
|
14
|
+
member do
|
|
15
|
+
patch :confirm
|
|
16
|
+
patch :dismiss
|
|
18
17
|
end
|
|
18
|
+
end
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
end
|
|
20
|
+
# User management
|
|
21
|
+
resources :users, only: %i[index show] do
|
|
22
|
+
member do
|
|
23
|
+
post :suspend
|
|
24
|
+
post :unsuspend
|
|
25
|
+
post :ban
|
|
26
|
+
post :unban
|
|
28
27
|
end
|
|
28
|
+
end
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
end
|
|
30
|
+
# Frozen posts management
|
|
31
|
+
resources :frozen_posts, only: [ :index ] do
|
|
32
|
+
collection do
|
|
33
|
+
post "unfreeze_stage/:id", to: "frozen_posts#unfreeze_stage", as: :unfreeze_stage
|
|
34
|
+
post "unfreeze_comment/:id", to: "frozen_posts#unfreeze_comment", as: :unfreeze_comment
|
|
35
|
+
post "permanent_freeze_stage/:id", to: "frozen_posts#permanent_freeze_stage", as: :permanent_freeze_stage
|
|
36
|
+
post "permanent_freeze_comment/:id", to: "frozen_posts#permanent_freeze_comment", as: :permanent_freeze_comment
|
|
37
|
+
delete "destroy_stage/:id", to: "frozen_posts#destroy_stage", as: :destroy_stage
|
|
38
|
+
delete "destroy_comment/:id", to: "frozen_posts#destroy_comment", as: :destroy_comment
|
|
40
39
|
end
|
|
41
40
|
end
|
|
42
41
|
end
|