Add a route to the JS config
This commit is contained in:
parent
af8c193605
commit
68025ac43c
|
@ -32,6 +32,9 @@ $this->create('core_ajax_vcategories_favorites', '/core/ajax/vcategories/favorit
|
||||||
->actionInclude('core/ajax/vcategories/favorites.php');
|
->actionInclude('core/ajax/vcategories/favorites.php');
|
||||||
$this->create('core_ajax_vcategories_edit', '/core/ajax/vcategories/edit.php')
|
$this->create('core_ajax_vcategories_edit', '/core/ajax/vcategories/edit.php')
|
||||||
->actionInclude('core/ajax/vcategories/edit.php');
|
->actionInclude('core/ajax/vcategories/edit.php');
|
||||||
|
// oC JS config
|
||||||
|
$this->create('js_config', '/core/js/config.js')
|
||||||
|
->actionInclude('core/js/config.php');
|
||||||
// Routing
|
// Routing
|
||||||
$this->create('core_ajax_routes', '/core/routes.json')
|
$this->create('core_ajax_routes', '/core/routes.json')
|
||||||
->action('OC_Router', 'JSRoutes');
|
->action('OC_Router', 'JSRoutes');
|
||||||
|
|
Loading…
Reference in New Issue