A simple (straw) poll web application made with Laravel https://poll.fuwafuwa.moe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
881 B

| Web Routes
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
//NOTE: This is 302 because we might want to add a welcome page at some point
Route::redirect('/', '/poll', 302);
Route::get('/poll', 'PollController');
Route::post('/poll', 'PollController@create');
Route::get('/poll/{poll}', 'PollController@view');
Route::get('/poll/{poll}/edit', 'PollController@admin');
Route::patch('/poll/{poll}', 'PollController@edit');
Route::post('/poll/{poll}/vote', 'PollController@vote');
Route::get('/poll/{poll}/results', 'PollController@viewResults');