ishapi 0.1.8.278 → 0.1.8.279
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ishapi/leads_controller.rb +18 -0
- data/config/routes.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ce8f0bb38995cbae2386ac80cca5348d7b6f66a0157c59456d2ed78917b8e2a
|
4
|
+
data.tar.gz: 66507dd1f36f90a17a07eaadd4471b12320802807b837f42fc055240616d6925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ae954c9597a3618101cca2d7ba450355093d3f89bd6e3de59b8508720fbb616028a755a25633a2734e9a751df7afb1c10e1e22909277b5f27e0d9f42629ad57
|
7
|
+
data.tar.gz: f5fa92e6e1e5befe590c3d08174b5420233b6aeedf40d91c8df3f38c50d8ea11ffacf64a095d5f9f553658625ca1ac51c51dc7363363ab2204b9586941a88763
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
require_dependency "ishapi/application_controller"
|
3
|
+
module Ishapi
|
4
|
+
class LeadsController < ApplicationController
|
5
|
+
|
6
|
+
before_action :check_jwt
|
7
|
+
|
8
|
+
def index
|
9
|
+
authorize! :leads_index, ::Ishapi
|
10
|
+
out = Lead.all.page( params[:leads_page] ).per( @current_profile.per_page )
|
11
|
+
render json: {
|
12
|
+
items: out,
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
data/config/routes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ishapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.279
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -215,6 +215,7 @@ files:
|
|
215
215
|
- app/controllers/ishapi/galleries_controller.rb
|
216
216
|
- app/controllers/ishapi/gameui_controller.rb
|
217
217
|
- app/controllers/ishapi/invoices_controller.rb
|
218
|
+
- app/controllers/ishapi/leads_controller.rb
|
218
219
|
- app/controllers/ishapi/leadsets_controller.rb
|
219
220
|
- app/controllers/ishapi/locations_controller.rb
|
220
221
|
- app/controllers/ishapi/maps_controller.rb
|