Brainmaniac
6 months ago
689
2
Laravel

Does the example route in the api.php do anything?

Posted 6 months ago by Brainmaniac

Hello Everyone,

because of this bug in laravel: https://github.com/laravel/framework/issues/22034

I wonder if the example route in api.php does anything or is it safe to just remove it?

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});

Please sign in or create an account to participate in this conversation.