mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update PlaceController, require authentication
This commit is contained in:
parent
4701b0e8f0
commit
e7783af686
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,11 @@ use App\{
|
||||||
|
|
||||||
class PlaceController extends Controller
|
class PlaceController extends Controller
|
||||||
{
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middleware('auth');
|
||||||
|
}
|
||||||
|
|
||||||
public function show(Request $request, $id, $slug)
|
public function show(Request $request, $id, $slug)
|
||||||
{
|
{
|
||||||
$place = Place::whereSlug($slug)->findOrFail($id);
|
$place = Place::whereSlug($slug)->findOrFail($id);
|
||||||
|
|
Loading…
Add table
Reference in a new issue