Commit 7fb34f7a authored by Aria Givi's avatar Aria Givi

Parameter zur Post-Route hinzugefuegt

parent e93c7d34
......@@ -143,7 +143,7 @@ class LanguageController extends Controller
->with('email', $email); //Email-Adresse des Benutzers
}
public function createSynopticEditPage(Request $request, $exclude = "", $chosenFile = "")
public function createSynopticEditPage(Request $request, $exclude = '', $chosenFile = '')
{
$languageFolders = scandir($this->languageFilePath);
......@@ -253,7 +253,7 @@ class LanguageController extends Controller
return $t;
}
public function processSynopticPageInput(Request $request, $exclude = "") {
public function processSynopticPageInput(Request $request, $exclude = '', $chosenFile = '') {
$filename = $request->input('filename');
......
......@@ -165,7 +165,7 @@ Route::group(
});
Route::get('languages', 'LanguageController@createOverview');
Route::get('synoptic/{exclude?}/{chosenFile?}', 'LanguageController@createSynopticEditPage');
Route::post('synoptic/{exclude?}', 'LanguageController@processSynopticPageInput');
Route::post('synoptic/{exclude?}/{chosenFile?}', 'LanguageController@processSynopticPageInput');
Route::get('languages/edit/{from}/{to}/{exclude?}/{email?}', 'LanguageController@createEditPage');
Route::post('languages/edit/{from}/{to}/{exclude?}/{email?}', 'MailController@sendLanguageFile');
Route::get('berlin', 'StartpageController@berlin');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment