<?php

use Illuminate\Support\Facades\Route;

Route::group(['prefix' => 'reward', 'as' => 'reward.', 'namespace' => 'Rewards'], function () {
    Route::post('/create', 'CreateRewardController@create')->name('create');
    Route::get('/list', 'ListRewardsController@list')->name('list');
    Route::get('/list/details', 'ListRewardsDetailsController@list')->name('list.details');
    Route::get('/list/details/{user_id}', 'ListRewardsDetailsController@list')->name('list.details.admin');
    Route::delete('/delete/{id}', 'DeleteRewardController@delete')->name('delete');
});
