| 12345678910111213141516171819202122232425 |
- <?php
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\Route;
- /*
- |--------------------------------------------------------------------------
- | 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::group(['prefix' => 'procurement','middleware'=>'procurement.auth.api'], function ($router) {
- Route::post('logout', 'api\procurement\wechat\AuthController@logout');
- Route::post('refresh', 'api\procurement\wechat\AuthController@refresh');
- Route::post('me', 'api\procurement\wechat\AuthController@me');
- });
- Route::group(['prefix' => 'procurement'], function ($router) {
- Route::post('login', 'api\procurement\wechat\AuthController@login');
- Route::get('getQuotation', 'api\procurement\wechat\ProcurementController@getQuotation');
- });
|