FEATURE: init module for static pages
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php namespace Modules\Staticpages\Http\Controllers;
|
||||
|
||||
use Pingpong\Modules\Routing\Controller;
|
||||
|
||||
class StaticPagesController extends Controller {
|
||||
|
||||
public function index()
|
||||
{
|
||||
return view('staticpages::index');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
Route::group(['middleware' => 'web', 'prefix' => 'staticpages', 'namespace' => 'Modules\StaticPages\Http\Controllers'], function()
|
||||
{
|
||||
Route::get('/', 'StaticPagesController@index');
|
||||
});
|
||||
Reference in New Issue
Block a user