Fix response status code on invalid signature
This commit is contained in:
parent
0f68677bc0
commit
97c420ef28
2
urls.md
2
urls.md
|
@ -113,7 +113,7 @@ Alternatively, you may assign the `Illuminate\Routing\Middleware\ValidateSignatu
|
|||
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
|
||||
];
|
||||
|
||||
Once you have registered the middleware in your kernel, you may attach it to a route. If the incoming request does not have a valid signature, the middleware will automatically return a `401` error response:
|
||||
Once you have registered the middleware in your kernel, you may attach it to a route. If the incoming request does not have a valid signature, the middleware will automatically return a `403` error response:
|
||||
|
||||
Route::post('/unsubscribe/{user}', function (Request $request) {
|
||||
// ...
|
||||
|
|
Loading…
Reference in New Issue