Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

0.2.0

Compare
Choose a tag to compare
@rathesDot rathesDot released this 15 Jan 08:59
· 72 commits to master since this release
d08e6ea

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();
}