Browse files

Expose the list of all artefacts as JSON

  • Loading branch information...
1 parent ffa95ca commit 77b3814f117aad0dc1d651fd14c5a6bc52b28795 @craigw craigw committed Jan 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/artefacts_controller.rb
1 app/controllers/artefacts_controller.rb
@@ -13,6 +13,7 @@ class ArtefactsController < ApplicationController
def index
@artefacts = Artefact.order(:name).all
+ respond_with @artefacts
def show

2 comments on commit 77b3814


What are we using this for?


While I was waiting on planning I picked a story to work on. I need a list of all artefacts so I can check content for links that go nowhere. It wasn't prioritised so I stopped working on it.

Please sign in to comment.