This repository has been archived by the owner on Sep 10, 2019. It is now read-only.
0.2.0
This release adds the feature that there can be additional routes to the Mozhi routes. Before this version, every route would be automatically caught by Mozhi and passed to Mozhi's frontend controller. Now it is up to you to define this.
Upgrade Guide
If you are upgrading from a version < 0.2.0
then make sure that you add Mozhi::routes()
to the map()
function of your RouteServiceProvider.
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Mozhi;
...
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
$this->mapApiRoutes();
$this->mapWebRoutes();
Mozhi::routes();
}