forked from statamic/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.php
18 lines (13 loc) · 943 Bytes
/
api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
use Illuminate\Support\Facades\Route;
Route::resource('collections.entries', 'CollectionEntriesController')->only('index', 'show');
Route::resource('taxonomies.terms', 'TaxonomyTermsController')->only('index', 'show');
Route::resource('taxonomies.terms.entries', 'TaxonomyTermEntriesController')->only('index');
Route::resource('globals', 'GlobalsController')->only('index', 'show');
Route::resource('forms', 'FormsController')->only('index', 'show');
Route::resource('users', 'UsersController')->only('index', 'show');
Route::name('assets.index')->get('assets/{asset_container}', 'AssetsController@index');
Route::name('assets.show')->get('assets/{asset_container}/{asset}', 'AssetsController@show')->where('asset', '.*');
Route::get('collections/{collection}/tree', 'CollectionTreeController@show');
Route::get('navs/{nav}/tree', 'NavigationTreeController@show');
Route::get('{path?}', 'NotFoundController')->where('path', '.*');