Neuigkeiten/News/Blog-Editing und Bugfixes

This commit is contained in:
2026-03-26 01:16:56 +01:00
parent b0d7b97c46
commit 351c73778a
10 changed files with 300 additions and 44 deletions

View File

@@ -42,7 +42,7 @@ class WebsiteController extends Controller
}
public function news(Request $request){
return view('content.news', ['blogs' => BlogController::blogPaginated()]);
return view('content.news', ['blogs' => BlogController::blogPaginated(App::getLocale(), true)]);
}
public function services(Request $request){
@@ -74,6 +74,11 @@ class WebsiteController extends Controller
}
public function editNews(){
if(Auth::check()){
return response()
->view('blog.edit', ['blogs' => BlogController::blogPaginatedEdit()])
->header('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
}
abort(404);
}
}