started on auth, fixed the tags command and made a summary command
This commit is contained in:
+12
-2
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\Admin\DashboardController;
|
||||
use App\Http\Controllers\ProfileController;
|
||||
use App\Http\Controllers\Web\HomeController;
|
||||
use App\Http\Controllers\Web\JobController;
|
||||
use App\Http\Controllers\Web\PageController;
|
||||
@@ -30,9 +31,18 @@ Route::get('/sitemap-index.xml', [SitemapController::class, 'sitemapIndex'])->na
|
||||
Route::get('/sitemap-main.xml', [SitemapController::class, 'mainSitemap'])->name('sitemap.main');
|
||||
Route::get('/sitemap-jobs.xml', [SitemapController::class, 'jobsSitemap'])->name('sitemap.jobs');
|
||||
|
||||
// Admin routes (in production, protect these with authentication middleware)
|
||||
Route::prefix('admin')->name('admin.')->group(function () {
|
||||
// Profile (Breeze)
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
||||
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
|
||||
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
|
||||
});
|
||||
|
||||
// Admin routes
|
||||
Route::prefix('admin')->name('admin.')->middleware('auth')->group(function () {
|
||||
Route::get('/dashboard', [DashboardController::class, 'index'])->name('dashboard');
|
||||
Route::get('/logs/api', [DashboardController::class, 'apiLogs'])->name('logs.api');
|
||||
Route::get('/logs/fetch', [DashboardController::class, 'fetchLogs'])->name('logs.fetch');
|
||||
});
|
||||
|
||||
require __DIR__.'/auth.php';
|
||||
Reference in New Issue
Block a user