Boy132 e1308cb04d
Small api docs improvements (#1032)
* update scramble

* cleanup application api endpoints

* cleanup client api endpoints

* fix security schema and make docs homepage nicer

* remove duplicate myclabs/deep-copy

* style(api-docs): use Blade template and Tailwind for styling

* Publish scramble view

* Use localStorage theme instead of config

* Update routes/docs.php

Co-authored-by: Lance Pioch <git@lance.sh>

---------

Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com>
Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
Co-authored-by: Lance Pioch <git@lance.sh>
2025-02-26 16:12:19 +01:00

32 lines
1.2 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API Documentation</title>
@vite('resources/css/app.css')
</head>
<body class="bg-gray-100 min-h-screen flex items-center justify-center">
<div class="bg-white shadow-lg rounded-lg py-8 px-8 max-w-md w-full text-center">
<h2 class="text-xl font-bold text-gray-800 mb-4">API Documentation</h2>
<div class="mb-2">
<a href="/docs/api/application" class="inline-flex items-center">
<span class="mr-2">📘</span> <span style="color: #2563EB;">Application API</span>
</a>
</div>
<div class="mb-4">
<a href="/docs/api/client" class="inline-flex items-center">
<span class="mr-2">📗</span> <span style="color: #10B981;">Client API</span>
</a>
</div>
<div class="text-sm mt-4 flex items-center justify-center">
<span class="text-yellow-500 mr-2">⚠️</span>
<span style="color: #EF4444;">Note: You need to be logged in to view the API docs!</span>
</div>
</div>
</body>
</html>