1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-23 14:57:46 +01:00
2022-02-07 23:34:09 +01:00

25 lines
782 B
PHP

<?php
/** @noinspection UnusedFunctionResultInspection */
use LaravelJsonApi\Laravel\Facades\JsonApiRoute;
use LaravelJsonApi\Laravel\Http\Controllers\JsonApiController;
use LaravelJsonApi\Laravel\Routing\ResourceRegistrar;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
JsonApiRoute::server('v1')
->prefix('v1')
->resources(function (ResourceRegistrar $server) {
$server->resource('users', JsonApiController::class);
});