mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-26 00:30:02 +08:00
Updated listing endpoints to be clickable in api docs
This commit is contained in:
@ -189,7 +189,11 @@
|
|||||||
<h6 class="text-uppercase text-muted float right">{{ $endpoint['controller_method_kebab'] }}</h6>
|
<h6 class="text-uppercase text-muted float right">{{ $endpoint['controller_method_kebab'] }}</h6>
|
||||||
<h5 id="{{ $endpoint['name'] }}" class="text-mono mb-m">
|
<h5 id="{{ $endpoint['name'] }}" class="text-mono mb-m">
|
||||||
<span class="api-method" data-method="{{ $endpoint['method'] }}">{{ $endpoint['method'] }}</span>
|
<span class="api-method" data-method="{{ $endpoint['method'] }}">{{ $endpoint['method'] }}</span>
|
||||||
{{ url($endpoint['uri']) }}
|
@if($endpoint['controller_method_kebab'] === 'list')
|
||||||
|
<a style="color: inherit;" target="_blank" href="{{ url($endpoint['uri']) }}">{{ url($endpoint['uri']) }}</a>
|
||||||
|
@else
|
||||||
|
{{ url($endpoint['uri']) }}
|
||||||
|
@endif
|
||||||
</h5>
|
</h5>
|
||||||
<p class="mb-m">{{ $endpoint['description'] ?? '' }}</p>
|
<p class="mb-m">{{ $endpoint['description'] ?? '' }}</p>
|
||||||
@if($endpoint['body_params'] ?? false)
|
@if($endpoint['body_params'] ?? false)
|
||||||
|
Reference in New Issue
Block a user