Current File : /home/inlingua/public_html/crm.vprotectindia.com/routes/api_old_20_2_25.php |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\AuthController;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
//=================
Route::post('login', 'API\UserController@login');
Route::post('customer_login', 'API\UserController@customer_login');
Route::post('register', 'API\UserController@register');
Route::get('gatewaydetails','API\UserController@gatewaydetails');
Route::get('customer_payments','API\UserController@getpayments');
Route::get('customer_dashboard_count','API\UserController@deshboard_count');
Route::post('customer_changepassword', 'API\UserController@changepassword');
Route::post('customer_pay', 'PaymentGatewayController@api_create_customer_payment');
Route::group(['middleware' => 'auth:api'], function(){
Route::post('details', 'API\UserController@details');
//Route::get('details','API\UserController@details');
}
);
//===================
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
// Route::get('profile', 'API\UserController@profile');
Route::post('cust_master','API\CustomerMasterController@store');
Route::post('inv_master','API\InvoiceMastersController@store');
Route::post('voucher_master','API\VouchersController@store');
Route::get('outstanding_report/{id?}','API\InvoiceMastersController@report');
Route::get('customer','API\InvoiceMastersController@customer');
Route::get('voucher_master', 'PaymentGatewayController@index');
Route::put('voucher_master', 'PaymentGatewayController@update')->name('paymentget.update');
Route::post('customer_dashboard_count','API\UserController@deshboard_count');