GeoNetAgent, LDAPWeb, server-audit, server-connection
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
692 B

<?php
namespace App\Http\Controllers\Api\V1;
use App\Http\Controllers\Api\Concerns\RespondsWithJson;
use App\Http\Controllers\Controller;
use Illuminate\Http\JsonResponse;
class TokenGuideController extends Controller
{
use RespondsWithJson;
public function show(): JsonResponse
{
return $this->ok([
'method' => 'API Token',
'prefix' => config('api.token_prefix'),
'header' => 'Authorization: Bearer ' . config('api.token_prefix') . 'xxxxxxxx',
'create_at' => url('/api-clients'),
'note' => 'Tidak ada endpoint login. Token dibuat admin di API Clients, langsung dipakai sebagai Bearer.',
]);
}
}