<?php

namespace App\Controllers\View;

use App\Controllers\BaseController;

class DocsController extends BaseController
{
    public function swagger()
    {
        // Present both specs in a Swagger UI dropdown
        $specs = [
            [
                'name' => 'Administrator API',
                'url'  => '/docs/openapi_administrator_controller.yaml',
            ],
            [
                'name' => 'Parent API',
                'url'  => '/docs/openapi_parent_controller.yaml',
            ],
        ];

        return view('swagger_ui', ['specs' => $specs]);
    }
}
