thecore_api 1.1.7 → 1.1.8

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
  SHA1:
3
- metadata.gz: c3eeb066a19ef99dc62d57f971cd85863285dc5e
4
- data.tar.gz: 65a10141e57a771479610214ae7f90f7084ca70e
3
+ metadata.gz: 126c2866ff6c96d6550fe4112ce2554e62e125d5
4
+ data.tar.gz: 7b3c3cdffe44ebfcc0c18dc1e36b9159c6151012
5
5
  SHA512:
6
- metadata.gz: 66da97430ea31f832e402d9f9ec1eb610314660c380d0075a7576909d8e01e477e28f89b4f02cba058dae30404a54eed1a34fa501b630f484f949a18072d0434
7
- data.tar.gz: 9c7619c6fbd0bf84c151b99915669c42341726935971474a2c9b13da15ee6a091c321eff2a95052f44cae65bc45334526341bfbd3baa9dcc632bd9f228f59f79
6
+ metadata.gz: c9cf78939780309eaffd7641e5f2aa497bcca0758f4c1bdbb05b46788313508d1f7dcda21b12cdc083f28b85388beb83b4fae315fafd8447aad449c80c1fe792
7
+ data.tar.gz: 903a6c9e85095a1834a3e9759c4e3a999e19bddaf407ec77b616865f865bc1996ead3df1f6c79b3720b4d8439370b5ba9c573610855db0f1c72b62af854189dd
@@ -23,6 +23,10 @@ class Api::V1::InfoController < Api::V1::BaseController
23
23
  }.to_json, status: 200
24
24
  end
25
25
 
26
+ def roles
27
+ render json: ROLES.to_json, status: 200
28
+ end
29
+
26
30
  private
27
31
 
28
32
  # Method overridden because the first time I have to ask for the token
data/config/routes.rb CHANGED
@@ -11,6 +11,7 @@ Rails.application.routes.draw do
11
11
  namespace :info do
12
12
  get :version
13
13
  get :token
14
+ get :roles
14
15
  end
15
16
 
16
17
  resources :users, only: [:index, :create, :show, :update, :destroy] do
@@ -1,3 +1,3 @@
1
1
  module ThecoreApi
2
- VERSION = "1.1.7".freeze
2
+ VERSION = "1.1.8".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-27 00:00:00.000000000 Z
11
+ date: 2018-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore