From a86a7d2769d73869bdb60cd79554859e651b7d64 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 25 May 2019 18:56:21 -0600 Subject: [PATCH] Hello Loops --- app/Http/Controllers/DiscoverController.php | 5 +++++ resources/views/discover/loops/home.blade.php | 5 +++++ routes/web.php | 1 + 3 files changed, 11 insertions(+) create mode 100644 resources/views/discover/loops/home.blade.php diff --git a/app/Http/Controllers/DiscoverController.php b/app/Http/Controllers/DiscoverController.php index 0c87954e0..dbe08becf 100644 --- a/app/Http/Controllers/DiscoverController.php +++ b/app/Http/Controllers/DiscoverController.php @@ -115,4 +115,9 @@ class DiscoverController extends Controller }); return view('discover.personal', compact('posts', 'tags')); } + + public function showLoops(Request $request) + { + return view('discover.loops.home'); + } } diff --git a/resources/views/discover/loops/home.blade.php b/resources/views/discover/loops/home.blade.php new file mode 100644 index 000000000..d231d559c --- /dev/null +++ b/resources/views/discover/loops/home.blade.php @@ -0,0 +1,5 @@ +@extends('layouts.app') + +@section('content') + +@endsection \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 80dc86e50..10ea2fc1a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -62,6 +62,7 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact Route::get('discover/c/{slug}', 'DiscoverController@showCategory'); Route::get('discover/personal', 'DiscoverController@showPersonal'); Route::get('discover', 'DiscoverController@home')->name('discover'); + Route::get('discover/loops', 'DiscoverController@showLoops'); Route::group(['prefix' => 'api'], function () { Route::get('search', 'SearchController@searchAPI');