rename metacontroller
This commit is contained in:
parent
13a9029abd
commit
ca685bd460
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Holds the meta page controllers.
|
* Holds the homepage controller.
|
||||||
* @package Sakura
|
* @package Sakura
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -13,11 +13,11 @@ use Sakura\Template;
|
||||||
use Sakura\User;
|
use Sakura\User;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Meta page controllers (sections that aren't big enough to warrant a dedicated controller).
|
* Homepage controller.
|
||||||
* @package Sakura
|
* @package Sakura
|
||||||
* @author Julian van de Groep <me@flash.moe>
|
* @author Julian van de Groep <me@flash.moe>
|
||||||
*/
|
*/
|
||||||
class MetaController extends Controller
|
class HomeController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Serves the site index.
|
* Serves the site index.
|
|
@ -19,7 +19,7 @@ Router::filter('maintenance', function () {
|
||||||
|
|
||||||
Router::group(['before' => 'maintenance'], function () {
|
Router::group(['before' => 'maintenance'], function () {
|
||||||
// Meta pages
|
// Meta pages
|
||||||
Router::get('/', 'MetaController@index', 'main.index');
|
Router::get('/', 'HomeController@index', 'main.index');
|
||||||
|
|
||||||
// Link compatibility layer, prolly remove this in like a year
|
// Link compatibility layer, prolly remove this in like a year
|
||||||
Router::get('/r/{id}', function ($id) {
|
Router::get('/r/{id}', function ($id) {
|
||||||
|
|
Reference in a new issue