api.php 645 B

1234567891011121314151617181920
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. Route::namespace('Api')->group(function () {
  14. // Route::middleware('auth:api')->get('/opcdata', function (Request $request) {
  15. Route::get('opcdata/getData', 'OpcDataController@getData');
  16. // return $request->user();
  17. });