mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-26 23:07:59 +01:00
17 lines
382 B
PHP
17 lines
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);
|
||
|
}
|
||
|
}
|