mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Cleanup outdated discover routes and unused HomeController
This commit is contained in:
parent
08b07a4a38
commit
0afea2ba1c
3 changed files with 0 additions and 55 deletions
|
@ -45,26 +45,6 @@ class DiscoverController extends Controller
|
|||
return view('discover.tags.show', compact('tag', 'tagCount'));
|
||||
}
|
||||
|
||||
public function showCategory(Request $request, $slug)
|
||||
{
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function showLoops(Request $request)
|
||||
{
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function loopsApi(Request $request)
|
||||
{
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function loopWatch(Request $request)
|
||||
{
|
||||
return response()->json(200);
|
||||
}
|
||||
|
||||
public function getHashtags(Request $request)
|
||||
{
|
||||
$user = $request->user();
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the application dashboard.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
return redirect('/');
|
||||
}
|
||||
}
|
|
@ -94,17 +94,10 @@ Route::domain(config('pixelfed.domain.admin'))->prefix('i/admin')->group(functio
|
|||
|
||||
Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofactor', 'localization'])->group(function () {
|
||||
Route::get('/', 'SiteController@home')->name('timeline.personal');
|
||||
Route::post('/', 'StatusController@store');
|
||||
|
||||
Auth::routes();
|
||||
|
||||
Route::get('/home', 'HomeController@index')->name('home');
|
||||
|
||||
Route::get('discover/c/{slug}', 'DiscoverController@showCategory');
|
||||
Route::redirect('discover/personal', '/discover');
|
||||
Route::get('discover', 'DiscoverController@home')->name('discover');
|
||||
Route::get('discover/loops', 'DiscoverController@showLoops');
|
||||
Route::get('discover/profiles', 'DiscoverController@profilesDirectory')->name('discover.profiles');
|
||||
|
||||
Route::group(['prefix' => 'api'], function () {
|
||||
Route::get('search', 'SearchController@searchAPI');
|
||||
|
|
Loading…
Reference in a new issue