mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
Initial commit
This commit is contained in:
27
routes/web.php
Normal file
27
routes/web.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Web Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register web routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/', function () {
|
||||
|
||||
$tasks = App\Task::incomplete()->get();
|
||||
|
||||
return view('welcome', compact('tasks'));
|
||||
});
|
||||
|
||||
Route::get('/register', 'AuthController@register');
|
||||
|
||||
Route::post('/register', 'AuthController@createuser');
|
||||
|
||||
Route::get('/login', 'AuthController@login');
|
||||
|
||||
Route::get('/admin', 'AdminController@index')->name('home');
|
||||
Reference in New Issue
Block a user