Skip to content

Instantly share code, notes, and snippets.

@MrAtiebatie
Last active May 2, 2018 09:37
Show Gist options
  • Save MrAtiebatie/508435c2a396709a01c6209387f7bbfb to your computer and use it in GitHub Desktop.
Save MrAtiebatie/508435c2a396709a01c6209387f7bbfb to your computer and use it in GitHub Desktop.
routes/api.php
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| 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::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
Route::middleware('auth:api')->post('/broadcast/auth', 'Api\BroadcastAuthController@auth');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment