From 193027bdc7012d51b0c843c770c1c3d814805b65 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 25 May 2020 21:46:30 -0600 Subject: [PATCH] Update web routes --- routes/web.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/routes/web.php b/routes/web.php index 5ecc43681..79f40a83c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -265,6 +265,15 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact Route::get('my/story', 'StoryController@iRedirect'); Route::get('web/profile/_/{id}', 'InternalApiController@remoteProfile'); Route::get('web/post/_/{profileId}/{statusid}', 'InternalApiController@remoteStatus'); + + Route::group(['prefix' => 'import', 'middleware' => 'dangerzone'], function() { + Route::get('job/{uuid}/1', 'ImportController@instagramStepOne'); + Route::post('job/{uuid}/1', 'ImportController@instagramStepOneStore'); + Route::get('job/{uuid}/2', 'ImportController@instagramStepTwo'); + Route::post('job/{uuid}/2', 'ImportController@instagramStepTwoStore'); + Route::get('job/{uuid}/3', 'ImportController@instagramStepThree'); + Route::post('job/{uuid}/3', 'ImportController@instagramStepThreeStore'); + }); }); Route::group(['prefix' => 'account'], function () { @@ -362,6 +371,16 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact Route::get('invites', 'UserInviteController@show')->name('settings.invites'); // Route::get('sponsor', 'SettingsController@sponsor')->name('settings.sponsor'); // Route::post('sponsor', 'SettingsController@sponsorStore'); + Route::prefix('import')->group(function() { + Route::get('/', 'SettingsController@dataImport')->name('settings.import'); + Route::prefix('instagram')->group(function() { + Route::get('/', 'ImportController@instagram')->name('settings.import.ig'); + Route::post('/', 'ImportController@instagramStart'); + }); + Route::prefix('mastodon')->group(function() { + Route::get('/', 'ImportController@mastodon')->name('settings.import.mastodon'); + }); + }); }); Route::group(['prefix' => 'site'], function () {