mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update web routes
This commit is contained in:
parent
1d81921693
commit
193027bdc7
1 changed files with 19 additions and 0 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue