diff --git a/routes/web.php b/routes/web.php index 7dd75f6..f0df1d6 100644 --- a/routes/web.php +++ b/routes/web.php @@ -9,21 +9,6 @@ use LaraZeus\Sky\Http\Livewire\Posts; use LaraZeus\Sky\Http\Livewire\Tags; -Route::prefix(config('zeus-sky.path')) - ->middleware(config('zeus-sky.middleware')) - ->group(function () { - Route::get('/', Posts::class)->name('blogs'); - Route::get(config('zeus-sky.post_uri_prefix') . '/{slug}', Post::class)->name('post'); - Route::get(config('zeus-sky.page_uri_prefix') . '/{slug}', Page::class)->name('page'); - Route::get('{type}/{slug}', Tags::class)->name('tags'); - - Route::get('passConf', function () { - session()->put(request('postID') . '-' . request('password'), request('password')); - - return redirect()->back()->with('status', 'sorry, password incorrect!'); - }); - }); - if (in_array('LaraZeus\Sky\Filament\Resources\FaqResource', config('zeus-sky.enabled_resources'))) { Route::middleware(config('zeus-sky.middleware')) ->get(config('zeus-sky.faq_uri_prefix'), Faq::class) @@ -38,3 +23,18 @@ Route::get('/{slug}', LibraryItem::class)->name('library.item'); }); } + +Route::prefix(config('zeus-sky.path')) + ->middleware(config('zeus-sky.middleware')) + ->group(function () { + Route::get('/', Posts::class)->name('blogs'); + Route::get(config('zeus-sky.post_uri_prefix') . '/{slug}', Post::class)->name('post'); + Route::get(config('zeus-sky.page_uri_prefix') . '/{slug}', Page::class)->name('page'); + Route::get('{type}/{slug}', Tags::class)->name('tags'); + + Route::get('passConf', function () { + session()->put(request('postID') . '-' . request('password'), request('password')); + + return redirect()->back()->with('status', 'sorry, password incorrect!'); + }); + });