osb/routes/api.php

31 lines
1.1 KiB
PHP
Raw Normal View History

2017-11-03 05:26:07 +00:00
<?php
use App\Http\Controllers\{AdminController,
CheckoutController,
ResellerServicesController};
2017-11-03 05:26:07 +00:00
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
2017-11-03 05:26:07 +00:00
|
*/
2018-07-31 04:11:00 +00:00
Route::group(['middleware'=>['auth:api','role:reseller']], function() {
// Route::get('/r/agents','ResellerServicesController@agents');
2021-06-29 06:36:34 +00:00
Route::get('/r/accounts',[ResellerServicesController::class,'accounts']);
// Route::get('/r/clients','ResellerServicesController@clients');
// Route::get('/r/service_inactive','ResellerServicesController@service_inactive');
Route::post('r/invoices/{o}',[AdminController::class,'pay_invoices'])
->where('o','[0-9]+')
->middleware(['theme:adminlte-be','role:wholesaler']);
2018-07-17 04:10:40 +00:00
});
2018-06-05 11:13:57 +00:00
Route::group(['middleware'=>'auth:api'], function() {
Route::post('/u/checkout/fee/{o}',[CheckoutController::class,'fee'])
2020-07-27 04:49:59 +00:00
->where('o','[0-9]+');
2018-08-09 14:10:51 +00:00
});