mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Added /api => /api/docs redirect for convenience.
This commit is contained in:
@@ -10,6 +10,12 @@ class ApiDocsTest extends TestCase
|
||||
|
||||
protected $endpoint = '/api/docs';
|
||||
|
||||
public function test_api_endpoint_redirects_to_docs()
|
||||
{
|
||||
$resp = $this->actingAsApiEditor()->get('/api');
|
||||
$resp->assertRedirect('api/docs');
|
||||
}
|
||||
|
||||
public function test_docs_page_returns_view_with_docs_content()
|
||||
{
|
||||
$resp = $this->actingAsApiEditor()->get($this->endpoint);
|
||||
|
Reference in New Issue
Block a user