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