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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60cd69a1c4139cceded823863ac90e643ed19a133607b5a70e494469c9b5effe
4
- data.tar.gz: d4cfa88f2587d210416e3d022ae8de4eafeb9f93f6c8a3e3beeb6fe6e654603b
3
+ metadata.gz: 8ce8f0bb38995cbae2386ac80cca5348d7b6f66a0157c59456d2ed78917b8e2a
4
+ data.tar.gz: 66507dd1f36f90a17a07eaadd4471b12320802807b837f42fc055240616d6925
5
5
  SHA512:
6
- metadata.gz: f4eaf4b27f066ceca37221f08cceafd7d7788e20a3b07c3dbd8133009c4d1dee158abbdc56135928627d32863337174180970f59fb9d3156e31f8477a31be38d
7
- data.tar.gz: 462a6d630a867da48e45edcc34011d2ba8067f9731e0dcc533cca7143ebdf9892f02ab0b09a9fe4abccae9939534b73bc578d1f1c996dcc8e7557fcddbe769a0
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
@@ -24,6 +24,7 @@ Ishapi::Engine.routes.draw do
24
24
  post 'invoices/search', :to => 'invoices#search'
25
25
 
26
26
  # L
27
+ get 'leads', to: 'leads#index'
27
28
  get 'leadsets', to: 'leadsets#index'
28
29
  delete 'leadsets', to: 'leadsets#destroy'
29
30
 
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.278
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-08-05 00:00:00.000000000 Z
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