added routes for new views

added displayTotalWorth view display
added form response for displaying total worth
modified Moons Controller
modified Moon Calc class
This commit is contained in:
2018-11-07 16:47:26 -06:00
parent a201986ef7
commit 62af0bcd5d
5 changed files with 339 additions and 2 deletions

View File

@@ -27,10 +27,11 @@ Route::get('/dashboard', 'DashboardController@index');
Route::get('/moons/display', 'MoonsController@displayMoons');
Route::get('/moons/addmoon', 'MoonsController@addMoon');
Route::get('/moons/updatemoon', 'MoonsController@updateMoon');
Route::get('/moons/display/worth', 'MoonsController@displayTotalWorthForm');
//Moon Controller POST requests
Route::post('storeMoon', 'MoonsController@storeMoon');
Route::post('storeUpdateMoon', 'MoonsController@storeUpdateMoon');
Route::post('displayTotalWorth', 'MoonsController@displayTotalWorth');
//Wiki Controller display pages
Route::get('/wiki/register', 'WikiController@displayRegister');