Commit 816c4aeb authored by Maik Messerschmidt's avatar Maik Messerschmidt
Browse files

Renamed csv import routes.

parent 6c38609d
......@@ -7,6 +7,7 @@ use App\Input;
use Illuminate\Http\Request;
use App\Http\Requests\StoreInput;
// use App\Http\Requests\InputCSVImport;
class InputController extends Controller
{
......@@ -44,14 +45,14 @@ class InputController extends Controller
/**
* Show form to import from CSV.
*/
public function show_csv_import() {
// return view('inputs.csv_import');
public function import_csv_form() {
return view('inputs.import_csv');
}
/**
* Do the csv import.
*/
public function csv_import() {
public function import_csv(InputCSVImport $request) {
}
......
......@@ -22,10 +22,10 @@ Route::middleware(['web', 'auth'])->group(function() {
->name('experiments.reset');
Route::resource('/admin/experiments', 'ExperimentController');
Route::get('/admin/inputs/csv-import', 'InputController@show_csv_import')
->name('inputs.show_csv_import');
Route::post('/admin/inputs/csv-import', 'InputController@csv_import')
->name('inputs.csv_import');
Route::get('/admin/inputs/import-csv', 'InputController@import_csv_form')
->name('inputs.import_csv_form');
Route::post('/admin/inputs/import-csv', 'InputController@import_csv')
->name('inputs.import_csv');
Route::resource('/admin/inputs', 'InputController');
......
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