summaryrefslogtreecommitdiff
path: root/app/controllers/v1
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-20 18:38:44 -0700
committermo khan <mo@mokhan.ca>2014-02-20 18:38:44 -0700
commite602075ef3bc53075129b1427ea880eaea2def5a (patch)
tree6a9598fcf3231505e416511bf45e3b05725abc8c /app/controllers/v1
parenta95bc6ecd044ca3ec7590a3189e9c54e06a9f72c (diff)
start to define the index action.
Diffstat (limited to 'app/controllers/v1')
-rw-r--r--app/controllers/v1/licenses_controller.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/v1/licenses_controller.rb b/app/controllers/v1/licenses_controller.rb
index 697daa9..86eb85e 100644
--- a/app/controllers/v1/licenses_controller.rb
+++ b/app/controllers/v1/licenses_controller.rb
@@ -1,2 +1,8 @@
-class V1::LicensesController
+class V1::LicensesController < ApplicationController
+ def index
+ per_page = 10
+ page = 1
+ @licenses = License.most_recent(page, per_page)
+ render nothing: true
+ end
end