Theme routes

Routes for theme are located in /platform/themes/[your-theme]/routes/web.php

Please add your custom routes on the top of file to make sure it is not overridden by default routes.

<?php

// Custom routes
// You can delete this route group if you don't need to add your custom routes.
Route::group(['namespace' => 'Theme\[YourTheme]\Http\Controllers', 'middleware' => 'web'], function () {
    Route::group(apply_filters(BASE_FILTER_GROUP_PUBLIC_ROUTE, []), function () {

        // Add your custom route here
        // Ex: Route::get('hello', '[YourTheme][email protected]');

    });

});

Theme::routes();

Route::group(['namespace' => 'Theme\[YourTheme]\Http\Controllers', 'middleware' => 'web'], function () {
    Route::group(apply_filters(BASE_FILTER_GROUP_PUBLIC_ROUTE, []), function () {

        Route::get('/', '[YourTheme][email protected]')->name('public.index');

        Route::get('sitemap.xml', [
            'as'   => 'public.sitemap',
            'uses' => '[YourTheme][email protected]',
        ]);

        Route::get('{slug?}' . config('core.base.general.public_single_ending_url'), [
            'as'   => 'public.single',
            'uses' => '[YourTheme][email protected]',
        ]);

    });

});