mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Add API endpoint to API keys page
// TODO - localize it
This commit is contained in:
parent
0954ff0659
commit
714ad071ca
|
@ -8,14 +8,28 @@
|
||||||
|
|
||||||
{{-- Page content --}}
|
{{-- Page content --}}
|
||||||
@section('content')
|
@section('content')
|
||||||
@if (!config('app.lock_passwords'))
|
|
||||||
<passport-personal-access-tokens
|
|
||||||
token-url="{{ url('oauth/personal-access-tokens') }}"
|
<div class="row">
|
||||||
scopes-url="{{ url('oauth/scopes') }}">
|
<div class="col-md-8">
|
||||||
</passport-personal-access-tokens>
|
|
||||||
@else
|
@if (!config('app.lock_passwords'))
|
||||||
<p class="help-block">{{ trans('general.feature_disabled') }}</p>
|
<passport-personal-access-tokens
|
||||||
@endif
|
token-url="{{ url('oauth/personal-access-tokens') }}"
|
||||||
|
scopes-url="{{ url('oauth/scopes') }}">
|
||||||
|
</passport-personal-access-tokens>
|
||||||
|
@else
|
||||||
|
<p class="help-block">{{ trans('general.feature_disabled') }}</p>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<p>Your API endpoint is located at:<br>
|
||||||
|
<code>{{ url('/api/v1') }}</code></p>
|
||||||
|
|
||||||
|
<p>When you generate an API token, be sure to copy it down immediately as they will not be visible to you again. </p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('moar_scripts')
|
@section('moar_scripts')
|
||||||
|
|
Loading…
Reference in a new issue