链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
801 B

5 years ago
4 years ago
5 years ago
4 years ago
4 years ago
4 years ago
  1. <?php
  2. use App\Http\Controllers\GrabOrderController;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Support\Facades\Route;
  5. /*
  6. |--------------------------------------------------------------------------
  7. | API Routes
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here is where you can register API routes for your application. These
  11. | routes are loaded by the RouteServiceProvider within a group which
  12. | is assigned the "api" middleware group. Enjoy building your API!
  13. |
  14. */
  15. Route::middleware('auth:api')->get('/user', function (Request $request) {
  16. return $request->user();
  17. });
  18. Route::prefix('grab')->group(function () {
  19. Route::post('grab', [GrabOrderController::class, 'grabOrder']);
  20. Route::get('order_info', [GrabOrderController::class, 'orderInfo']);
  21. });