sifangpay/routes/api.php

32 lines
916 B
PHP

<?php
/*
|--------------------------------------------------------------------------
| 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!
|domain(config('host.web_host'))->
*/
Route::name('web.api.')->group(function ($route) {
Route::group(['prefix' => 'api/pay'], function ($route) {
$route->get('/checkpay','OrderApiController@checkPay')->name('pay_check');
$route->post('/cancle/order', 'OrderApiController@cancleOrder')->name('pay_cancle.order');
$route->post('/update/order', 'OrderApiController@updateOrder')->name('update.order');
});
});
//Auth::routes();
//
//Route::get('/home', 'HomeController@index')->name('home');