2022-04-22 20:01:30 -07:00
|
|
|
<?php
|
|
|
|
|
2022-04-23 11:39:07 -07:00
|
|
|
use App\Http\Controllers\CollectiveController;
|
2022-04-23 16:25:16 -07:00
|
|
|
use App\Http\Controllers\JoinedController;
|
2022-04-24 17:44:39 -07:00
|
|
|
use App\Http\Controllers\SessionsController;
|
2022-04-22 20:01:30 -07:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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!
|
|
|
|
|
|
|
|
|
*/
|
2022-04-24 17:44:39 -07:00
|
|
|
Route::redirect('/fanatic', '/fanatic/login')->middleware('guest');
|
|
|
|
|
2022-04-23 16:25:16 -07:00
|
|
|
Route::middleware('guest')->group(function () {
|
2022-04-26 11:15:27 -07:00
|
|
|
Route::get('/fanatic/login', [SessionsController::class, 'create'])
|
|
|
|
->name('admin.sessions.create');
|
|
|
|
Route::get('/fanatic/install', [CollectiveController::class, 'create'])
|
|
|
|
->name('admin.collectives.create');
|
|
|
|
Route::post('/fanatic', [CollectiveController::class, 'store'])
|
|
|
|
->name('admin.collectives.store');
|
2022-04-23 16:25:16 -07:00
|
|
|
});
|
2022-04-22 20:01:30 -07:00
|
|
|
|
2022-04-24 17:44:39 -07:00
|
|
|
Route::post('/fanatic', [SessionsController::class, 'store'])->name('admin.sessions.store');
|
|
|
|
|
2022-04-23 16:25:16 -07:00
|
|
|
Route::middleware('auth')->group(function () {
|
2022-04-26 11:15:27 -07:00
|
|
|
Route::get('/fanatic', [CollectiveController::class, 'dashboard'])->name('admin.dashboard');
|
|
|
|
Route::delete('/fanatic', [SessionsController::class, 'destroy'])->name('admin.sessions.destroy');
|
2022-04-23 16:25:16 -07:00
|
|
|
|
2022-04-26 11:15:27 -07:00
|
|
|
Route::get('/fanatic/joined', [JoinedController::class, 'index'])
|
|
|
|
->name('admin.joined.index');
|
|
|
|
Route::get('/fanatic/joined/create', [JoinedController::class, 'create'])
|
|
|
|
->name('admin.joined.create');
|
|
|
|
Route::post('/fanatic/joined', [JoinedController::class, 'store'])
|
|
|
|
->name('admin.joined.store');
|
|
|
|
Route::get('/fanatic/joined/{joined}', [JoinedController::class, 'show'])
|
|
|
|
->name('admin.joined.show');
|
|
|
|
Route::get('/fanatic/joined/{joined}/edit', [JoinedController::class, 'edit'])
|
|
|
|
->name('admin.joined.edit');
|
|
|
|
Route::patch('/fanatic/joined/{joined}', [JoinedController::class, 'update'])
|
|
|
|
->name('admin.joined.update');
|
|
|
|
Route::delete('/fanatic/joined/{joined}', [JoinedController::class, 'destroy'])
|
|
|
|
->name('admin.joined.destroy');
|
2022-04-23 16:25:16 -07:00
|
|
|
});
|