Ejemplo n.º 1
0
<?php

Route::group(['prefix' => backend_url_segment(), 'as' => 'backend.datasource.', 'middleware' => ['backend']], function () {
    Route::get('datasource/{id?}', ['as' => 'list', 'uses' => 'DatasourceController@getIndex'])->where('id', '[0-9]+');
    Route::controller('datasource/field', 'FieldController', ['getCreate' => 'field.create', 'postCreate' => 'field.create.post', 'getEdit' => 'field.edit', 'postEdit' => 'field.edit.post', 'getLocation' => 'field.location']);
    Route::controller('datasource/document', 'DocumentController', ['getCreate' => 'document.create', 'postCreate' => 'document.create.post', 'getEdit' => 'document.edit', 'postEdit' => 'document.edit.post', 'getRemove' => 'document.remove']);
    Route::controller('datasource', 'DatasourceController', ['getCreate' => 'create', 'postCreate' => 'create.post', 'getEdit' => 'edit', 'postEdit' => 'edit.post', 'getRemove' => 'remove']);
});
Route::group(['as' => 'api.datasource.', 'middleware' => ['api', 'backend']], function () {
    RouteAPI::get('datasource.headline', ['as' => 'headline', 'uses' => 'API\\SectionController@getHeadline']);
    RouteAPI::post('datasource.field.visible', ['as' => 'field.visible.set', 'uses' => 'API\\FieldController@setVisible']);
    RouteAPI::delete('datasource.field.visible', ['as' => 'field.visible.delete', 'uses' => 'API\\FieldController@setInvisible']);
    RouteAPI::delete('datasource.field', ['as' => 'field.delete', 'uses' => 'API\\FieldController@deleteField']);
    RouteAPI::post('datasource.document.remove', ['as' => 'document.remove', 'uses' => 'API\\DocumentController@deleteDelete']);
    RouteAPI::get('datasource.document.find', ['as' => 'document.find', 'uses' => 'API\\DocumentController@getFind']);
    RouteAPI::post('datasource.document.related', ['as' => 'document.related', 'uses' => 'API\\DocumentController@addRelated']);
    RouteAPI::delete('datasource.document.related', ['as' => 'document.related', 'uses' => 'API\\DocumentController@deleteRelated']);
    RouteAPI::get('datasource.menu.get', ['as' => 'menu.get', 'uses' => 'API\\MenuController@getMenu']);
    RouteAPI::get('datasource.folder.get', ['as' => 'folder.get', 'uses' => 'API\\MenuController@getFolderById']);
    RouteAPI::put('datasource.folder.create', ['as' => 'folder.create', 'uses' => 'API\\MenuController@createFolder']);
    RouteAPI::post('datasource.folder.section', ['as' => 'folder.create', 'uses' => 'API\\MenuController@addSectionToFolder']);
    RouteAPI::delete('datasource.folder.delete', ['as' => 'folder.delete', 'uses' => 'API\\MenuController@deleteFolder']);
});
Ejemplo n.º 2
0
<?php

Route::group(['as' => 'api.', 'middleware' => ['api', 'backend']], function () {
    RouteAPI::post('refresh.key', ['as' => 'refresh.key', 'uses' => 'API\\ApiTokensController@postRefresh']);
    RouteAPI::get('keys', ['as' => 'keys.list', 'uses' => 'API\\ApiTokensController@getKeys']);
    RouteAPI::put('key', ['as' => 'key.put', 'uses' => 'API\\ApiTokensController@putKey']);
    RouteAPI::delete('key', ['as' => 'key.delete', 'uses' => 'API\\ApiTokensController@deleteKey']);
});
Ejemplo n.º 3
0
<?php

Route::group(['prefix' => backend_url_segment(), 'as' => 'backend.plugins.', 'middleware' => ['backend']], function () {
    Route::get('plugins', ['as' => 'list', 'uses' => 'PluginController@getIndex']);
    Route::get('plugins/settings/{plugin}', ['as' => 'settings.get', 'uses' => 'PluginController@getSettings']);
    Route::post('plugins/settings/{plugin}', ['as' => 'settings.post', 'uses' => 'PluginController@postSettings']);
});
Route::group(['middleware' => ['api', 'backend']], function () {
    RouteAPI::get('plugins', ['as' => 'api.plugins.list', 'uses' => 'API\\PluginController@getList']);
    RouteAPI::post('plugins', ['as' => 'api.plugins.post', 'uses' => 'API\\PluginController@changeStatus']);
});
Ejemplo n.º 4
0
<?php

Route::group(['prefix' => backend_url_segment(), 'as' => 'backend.', 'middleware' => ['backend']], function () {
    Route::get('snippets', ['as' => 'snippet.list', 'uses' => 'SnippetController@getIndex']);
    Route::get('snippet/create', ['as' => 'snippet.create', 'uses' => 'SnippetController@getCreate']);
    Route::post('snippet/create', ['as' => 'snippet.create.post', 'uses' => 'SnippetController@postCreate']);
    Route::get('snippet/{id}', ['as' => 'snippet.edit', 'uses' => 'SnippetController@getEdit']);
    Route::post('snippet/{id}', ['as' => 'snippet.edit.post', 'uses' => 'SnippetController@postEdit']);
    Route::post('snippet/{id}/delete', ['as' => 'snippet.delete', 'uses' => 'SnippetController@postDelete']);
    Route::get('widget', ['as' => 'widget.list', 'uses' => 'WidgetController@getIndex']);
    Route::get('widget/{id}/location', ['as' => 'widget.location', 'uses' => 'WidgetController@getLocation']);
    Route::post('widget/{id}/location', ['as' => 'widget.location.post', 'uses' => 'WidgetController@postLocation']);
    Route::get('widget/{id}/edit', ['as' => 'widget.edit', 'uses' => 'WidgetController@getEdit']);
    Route::post('widget/{id}/edit', ['as' => 'widget.edit.post', 'uses' => 'WidgetController@postEdit']);
    Route::get('widget/create/{type?}', ['as' => 'widget.create', 'uses' => 'WidgetController@getCreate']);
    Route::post('widget/create', ['as' => 'widget.create.post', 'uses' => 'WidgetController@postCreate']);
    Route::get('widget/{id}/template', ['as' => 'widget.template', 'uses' => 'WidgetController@getTemplate']);
    Route::post('widget/{id}/delete', ['as' => 'widget.delete', 'uses' => 'WidgetController@postDelete']);
    Route::get('widget/{type}', ['as' => 'widget.list.by_type', 'uses' => 'WidgetController@getIndex']);
});
Route::group(['as' => 'api.', 'middleware' => ['api', 'backend']], function () {
    RouteAPI::get('page.widgets', ['as' => 'page.widgets', 'uses' => 'API\\WidgetController@getListForPage']);
    RouteAPI::put('widget', ['as' => 'widget.place', 'uses' => 'API\\WidgetController@putPlace']);
    RouteAPI::post('widget.set.template', ['as' => 'widget.set.template', 'uses' => 'API\\WidgetController@setTemplate']);
    RouteAPI::post('page.widgets.reorder', ['as' => 'page.widgets.reorder', 'uses' => 'API\\WidgetController@postReorder']);
    RouteAPI::post('snippet', ['as' => 'snippet.create', 'uses' => 'API\\SnippetController@postCreate']);
    RouteAPI::put('snippet', ['as' => 'snippet.edit', 'uses' => 'API\\SnippetController@postEdit']);
    RouteAPI::get('snippet.list', ['as' => 'snippet.list', 'uses' => 'API\\SnippetController@getList']);
    RouteAPI::get('snippet.xeditable', ['as' => 'snippet.xeditable', 'uses' => 'API\\SnippetController@getListForXEditable']);
});
Route::get('handler/{handler}', ['as' => 'widget.handler', 'uses' => 'HandlerController@getHandle', 'middleware' => ['web']]);
Ejemplo n.º 5
0
<?php

Route::group(['prefix' => backend_url_segment(), 'as' => 'backend.', 'middleware' => ['backend']], function () {
    Route::get('page/wysiwyg/{id}', ['as' => 'pages.wysiwyg', 'uses' => 'PageWysiwygController@getPageWysiwyg']);
    Route::controller('page', 'PageController', ['getIndex' => 'page.list', 'getCreate' => 'page.create', 'postCreate' => 'page.create.post', 'getEdit' => 'page.edit', 'postEdit' => 'page.edit.post', 'postDelete' => 'page.delete']);
    Route::controller('layouts', 'LayoutController', ['getIndex' => 'layout.list', 'getCreate' => 'layout.create', 'postCreate' => 'layout.create.post', 'getEdit' => 'layout.edit', 'postEdit' => 'layout.edit.post', 'postDelete' => 'layout.delete']);
});
Route::group(['as' => 'api.', 'middleware' => ['api', 'backend']], function () {
    RouteAPI::post('layout', ['as' => 'layout.create', 'uses' => 'API\\LayoutController@postCreate']);
    RouteAPI::put('layout', ['as' => 'layout.edit', 'uses' => 'API\\LayoutController@postEdit']);
    RouteAPI::get('layout.rebuild', ['as' => 'layout.rebuild.get', 'uses' => 'API\\LayoutController@getRebuildBlocks']);
    RouteAPI::get('layout.blocks', ['as' => 'layout.rebuild.get', 'uses' => 'API\\LayoutController@getBlocks']);
    RouteAPI::get('layout.xeditable', ['as' => 'layout.xeditable', 'uses' => 'API\\LayoutController@getListForXEditable']);
    RouteAPI::get('page.part', ['as' => 'page.part.get', 'uses' => 'API\\PagePartController@getByPageId']);
    RouteAPI::post('page.part', ['as' => 'page.part.post', 'uses' => 'API\\PagePartController@create']);
    RouteAPI::put('page.part/{id}', ['as' => 'page.part.put', 'uses' => 'API\\PagePartController@update'])->where('id', '[0-9]+');
    RouteAPI::delete('page.part/{id}', ['as' => 'page.part.delete', 'uses' => 'API\\PagePartController@delete'])->where('id', '[0-9]+');
    RouteAPI::post('page.part.reorder', ['as' => 'page.part.reorder', 'uses' => 'API\\PagePartController@reorder']);
    RouteAPI::get('page.behavior.settings', ['as' => 'page.behavior.settings', 'uses' => 'API\\PageBehaviorController@getSettings']);
    RouteAPI::get('page.children', ['as' => 'page.children', 'uses' => 'API\\PageController@getChildren']);
    RouteAPI::get('page.reorder', ['as' => 'page.reorder', 'uses' => 'API\\PageController@getReorder']);
    RouteAPI::post('page.reorder', ['as' => 'page.reorder', 'uses' => 'API\\PageController@postReorder']);
    RouteAPI::get('page.search', ['as' => 'page.search', 'uses' => 'API\\PageController@getSearch']);
    RouteAPI::post('page.changeStatus', ['as' => 'page.change_status', 'uses' => 'API\\PageController@postChangeStatus']);
});
Ejemplo n.º 6
0
<?php

Route::group(['prefix' => backend_url_segment(), 'as' => 'backend.', 'middleware' => ['backend']], function () {
    Route::get('/', ['as' => 'dashboard', 'uses' => 'DashboardController@getIndex']);
});
Route::group(['as' => 'api.dashboard.widget.', 'middleware' => ['backend']], function () {
    RouteAPI::get('dashboard.widget.available', ['as' => 'available', 'uses' => 'API\\DashboardController@getAvailableWidgets']);
    RouteAPI::get('dashboard.widget.list', ['as' => 'list', 'uses' => 'API\\DashboardController@getWidgetList']);
    RouteAPI::get('dashboard.widget', ['as' => 'settings', 'uses' => 'API\\DashboardController@getWidgetSettings']);
    RouteAPI::put('dashboard.widget', ['as' => 'put', 'uses' => 'API\\DashboardController@putWidget']);
    RouteAPI::post('dashboard.widget', ['as' => 'post', 'uses' => 'API\\DashboardController@postWidget']);
    RouteAPI::delete('dashboard.widget', ['as' => 'delete', 'uses' => 'API\\DashboardController@deleteWidget']);
});
Ejemplo n.º 7
0
<?php

RouteAPI::get('api.notifications.list', ['as' => 'api.notifications.list', 'uses' => 'API\\NotificationsController@getList', 'middleware' => ['web', 'api']]);
RouteAPI::delete('api.notification.read', ['as' => 'api.notifications.read', 'uses' => 'API\\NotificationsController@deleteRead', 'middleware' => ['web', 'api']]);
Ejemplo n.º 8
0
<?php

Route::group(['prefix' => backend_url_segment(), 'as' => 'backend.email.', 'middleware' => ['web']], function () {
    Route::get('/email/template', ['as' => 'template.list', 'uses' => 'EmailTemplateController@getIndex']);
    Route::get('/email/template/create', ['as' => 'template.create', 'uses' => 'EmailTemplateController@getCreate']);
    Route::post('/email/template/create', ['as' => 'template.create.post', 'uses' => 'EmailTemplateController@postCreate']);
    Route::get('/email/template/{id}/edit', ['as' => 'template.edit', 'uses' => 'EmailTemplateController@getEdit']);
    Route::post('/email/template/{id}/edit', ['as' => 'template.edit.post', 'uses' => 'EmailTemplateController@postEdit']);
    Route::post('/email/template/{id}/delete', ['as' => 'template.delete', 'uses' => 'EmailTemplateController@postDelete']);
    Route::get('/email/event', ['as' => 'event.list', 'uses' => 'EmailEventController@getIndex']);
    Route::get('/email/event/create', ['as' => 'event.create', 'uses' => 'EmailEventController@getCreate']);
    Route::post('/email/event/create', ['as' => 'event.create.post', 'uses' => 'EmailEventController@postCreate']);
    Route::get('/email/event/{id}/edit', ['as' => 'event.edit', 'uses' => 'EmailEventController@getEdit']);
    Route::post('/email/event/{id}/edit', ['as' => 'event.edit.post', 'uses' => 'EmailEventController@postEdit']);
    Route::post('/email/event/{id}/delete', ['as' => 'event.delete', 'uses' => 'EmailEventController@postDelete']);
});
Route::group(['as' => 'api.email.', 'middleware' => ['web', 'api']], function () {
    RouteAPI::get('email.events.options', ['as' => 'event.options', 'uses' => 'API\\EmailEventController@getOptions']);
    RouteAPI::post('email.send', ['as' => 'send', 'uses' => 'API\\EmailEventController@postSend']);
});
Ejemplo n.º 9
0
Route::group(['prefix' => backend_url_segment(), 'as' => 'backend.', 'middleware' => ['web']], function () {
    Route::controller('auth', 'Auth\\AuthController', ['getLogin' => 'auth.login', 'getLogout' => 'auth.logout', 'postLogin' => 'auth.login.post']);
});
Route::group(['prefix' => backend_url_segment(), 'as' => 'backend.', 'middleware' => ['backend']], function () {
    Route::get('user/{id}/edit', ['as' => 'user.edit', 'uses' => 'UserController@getEdit'])->where('id', '[0-9]+');
    Route::post('user/{id}/edit', ['as' => 'user.edit.post', 'uses' => 'UserController@postEdit'])->where('id', '[0-9]+');
    Route::post('user/{id}/delete', ['as' => 'user.delete', 'uses' => 'UserController@postDelete'])->where('id', '[0-9]+');
    Route::get('user/{id}/profile', ['as' => 'user.profile', 'uses' => 'UserController@getProfile'])->where('id', '[0-9]+');
    Route::get('user/profile', ['as' => 'user.current_profile', 'uses' => 'UserController@getProfile']);
    Route::controller('user', 'UserController', ['getIndex' => 'user.list', 'getCreate' => 'user.create', 'postCreate' => 'user.create.post']);
    Route::get('role/{id}/edit', ['as' => 'role.edit', 'uses' => 'RoleController@getEdit'])->where('id', '[0-9]+');
    Route::post('role/{id}/edit', ['as' => 'role.edit.post', 'uses' => 'RoleController@postEdit'])->where('id', '[0-9]+');
    Route::post('role/{id}/delete', ['as' => 'role.delete', 'uses' => 'RoleController@postDelete'])->where('id', '[0-9]+');
    Route::controller('role', 'RoleController', ['getIndex' => 'role.list', 'getCreate' => 'role.create', 'postCreate' => 'role.create.post']);
    Route::controller('password', 'Auth\\PasswordController', ['getEmail' => 'auth.password', 'postEmail' => 'auth.password.post']);
});
Route::group(['as' => 'api.user.', 'middleware' => ['api', 'backend']], function () {
    RouteAPI::get('api.user.list', ['as' => 'list.get', 'uses' => 'API\\UserController@getUsers']);
    RouteAPI::get('api.user.like', ['as' => 'like.get', 'uses' => 'API\\UserController@getLike']);
    RouteAPI::get('api.user.roles', ['as' => 'roles.get', 'uses' => 'API\\UserController@getRoles']);
    RouteAPI::get('api.user.meta', ['as' => 'meta.get', 'uses' => 'API\\UserMetaController@getData']);
    RouteAPI::post('api.user.meta', ['as' => 'meta.post', 'uses' => 'API\\UserMetaController@postData']);
    RouteAPI::delete('api.user.meta', ['as' => 'meta.delete', 'uses' => 'API\\UserMetaController@deleteData']);
});
RouteAPI::get('api.roles', ['as' => 'api.roles.get', 'uses' => 'API\\RoleController@getAll', 'middleware' => ['api', 'backend']]);
Route::group(['prefix' => 'reflink', 'as' => 'reflink.', 'middleware' => ['web', 'backend']], function () {
    Route::get('', ['as' => 'form', 'uses' => 'ReflinkController@getForm']);
    Route::post('', ['as' => 'form.post', 'uses' => 'ReflinkController@postForm']);
    Route::get('complete', ['as' => 'complete', 'uses' => 'ReflinkController@complete']);
    Route::get('{token}', ['as' => 'token', 'uses' => 'ReflinkController@handle'])->where('token', '[a-z0-9]+');
});
Ejemplo n.º 10
0
<?php

Route::group(['prefix' => backend_url_segment(), 'as' => 'backend.', 'middleware' => ['backend']], function () {
    /**********************************************************************
     * System
     **********************************************************************/
    Route::get('/settings', ['as' => 'settings', 'uses' => 'SystemController@settings']);
    Route::get('/about', ['as' => 'about', 'uses' => 'SystemController@about']);
    Route::get('/update', ['as' => 'update', 'uses' => 'SystemController@update']);
    Route::get('/phpinfo', ['as' => 'phpinfo', 'uses' => 'SystemController@phpInfo']);
    /**********************************************************************
     * Dashboard
     **********************************************************************/
    Route::get('/', ['as' => 'dashboard', 'uses' => 'SystemController@about']);
});
Route::group(['as' => 'api.', 'middleware' => ['backend']], function () {
    /**********************************************************************
     * Settings
     **********************************************************************/
    RouteAPI::post('settings.update', ['as' => 'settings.update', 'uses' => 'API\\SettingsController@post']);
    /**********************************************************************
     * Cache
     **********************************************************************/
    RouteAPI::delete('cache.clear', ['as' => 'cache.clear', 'uses' => 'API\\CacheController@deleteClear']);
    /**********************************************************************
     * Notifications
     **********************************************************************/
    RouteAPI::get('notifications.recent', ['as' => 'notifications.recent', 'uses' => 'API\\NotificationController@recent']);
    RouteAPI::put('notifications.read', ['as' => 'notifications.read', 'uses' => 'API\\NotificationController@markAsRead']);
});