summaryrefslogtreecommitdiff
path: root/lib/api/license_info.rb
blob: c2c173af4292d8e2aacfb5458c5a51031c8bdc45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module API
  class LicenseInfo < Grape::API
    before { authenticated_as_admin! }

    resource :license do

      # Get information on the currently active license
      #
      # Example request:
      #   GET /license
      get do
        @license = License.current

        present @license, with: Entities::License
      end
    end
  end
end