Skip to content

Commit

Permalink
Merge pull request #155 from santilorenzo/master
Browse files Browse the repository at this point in the history
Fix issue #154
  • Loading branch information
dusterio authored Feb 11, 2021
2 parents 79bd71f + 31615f5 commit d7bdec2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/RouteRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ public function all()
*/
private function prefix($path)
{
if (strstr($path, '\\') === false && isset($this->options['namespace'])) return $this->options['namespace'] . '\\' . $path;
if (strstr($path, '\\') === false && isset($this->options['namespace'])) {
return $this->options['namespace'] . '\\' . $path;
}

return $path;
}
Expand Down Expand Up @@ -104,7 +106,7 @@ public function forPersonalAccessTokens()
$this->app->get('/scopes', $this->prefix('ScopeController@all'));
$this->app->get('/personal-access-tokens', $this->prefix('PersonalAccessTokenController@forUser'));
$this->app->post('/personal-access-tokens', $this->prefix('PersonalAccessTokenController@store'));
$this->app->delete('/personal-access-tokens/{token_id}', $this->prefix('PersonalAccessTokenController@destroy'));
$this->app->delete('/personal-access-tokens/{tokenId}', $this->prefix('PersonalAccessTokenController@destroy'));
});
}
}

0 comments on commit d7bdec2

Please sign in to comment.