<?php

use App\Http\Controllers\Api\TerminalApiController;
use Illuminate\Support\Facades\Route;

Route::middleware('identify.terminal')->group(function () {
    Route::prefix('terminal')->group(function () {
        Route::post('/heartbeat', [TerminalApiController::class, 'heartbeat']);

        Route::get('/config', [TerminalApiController::class, 'config']);

        Route::get('/guides', [TerminalApiController::class, 'guides']);
        Route::post('/guides/pages', [TerminalApiController::class, 'guidePages']);

        Route::get('/knowledge', [TerminalApiController::class, 'knowledge']);
        Route::get('/documents/{document}/content', [TerminalApiController::class, 'documentContent']);
    });
});
