Pony.fm/app/controllers/Api/Web/TaxonomiesController.php
2013-07-25 16:33:12 -05:00

17 lines
No EOL
382 B
PHP

<?php
namespace Api\Web;
use Entities\Genre;
use Entities\License;
use Entities\TrackType;
class TaxonomiesController extends \ApiControllerBase {
public function getAll() {
return \Response::json([
'licenses' => License::all()->toArray(),
'genres' => Genre::orderBy('name')->get()->toArray(),
'track_types' => TrackType::all()->toArray()
], 200);
}
}