first commit
This commit is contained in:
33
routes/api.php
Normal file
33
routes/api.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\Auth\SanctumAuthController;
|
||||
use App\Http\Controllers\RenderController;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::group(['prefix' => 'user'], function () {
|
||||
Route::post('/register', [SanctumAuthController::class, 'register']);
|
||||
Route::post('/login', [SanctumAuthController::class, 'login']);
|
||||
});
|
||||
|
||||
Route::middleware('auth:sanctum')->group(function () {
|
||||
|
||||
Route::group(['prefix' => 'user'], function () {
|
||||
Route::get('/', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
|
||||
Route::post('/logout', [SanctumAuthController::class, 'logout']);
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'render'], function () {
|
||||
|
||||
Route::post('/', [RenderController::class, 'startRender'])->name('render.start');
|
||||
|
||||
Route::get('/all', [RenderController::class, 'allRenders'])->name('render.all');
|
||||
|
||||
Route::get('/{uuid}', [RenderController::class, 'renderStatus'])->name('render.status');
|
||||
|
||||
Route::Get('/{uuid}/elements', [RenderController::class, 'getVideoElements'])->name('render.elements.get');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user