openstamanager/routes/api.php

26 lines
803 B
PHP

<?php
use App\Http\Controllers\Api\SetupController;
use App\Http\Middleware\CheckConfigurationMiddleware;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
Route::name('setup.')->middleware(CheckConfigurationMiddleware::class)->group(static function () {
Route::post('setup/test', [SetupController::class, 'testDatabase'])
->name('test');
Route::put('setup/save', [SetupController::class, 'save'])
->name('save');
});
Route::restifyAuth();