mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-11 02:50:29 +00:00
✨ **Enhance API functionality and localizations**
- 🌐 Added API documentation annotations for multiple controllers (Meetups, Cities, Countries, Courses, Highscores, Venues), improving public and developer-facing endpoint clarity. - ➕ Integrated and configured the `dedoc/scramble` package for automated OpenAPI documentation generation. - 🔒 Excluded internal routes and actions from API documentation using `ExcludeRouteFromDocs` attributes. - 🌍 Added new localization keys for API Token features across multiple languages (`lv`, `es`, etc.). - 🛠️ Introduced `Group`, `Response`, and `QueryParameter` attributes for better request descriptions and structured documentation. - 🚀 Enhanced functionality for listing operations in controllers with filters and query parameters like `search` and `selected`.
This commit is contained in:
@@ -6,6 +6,7 @@ namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\LoginKey;
|
||||
use App\Models\User;
|
||||
use Dedoc\Scramble\Attributes\ExcludeRouteFromDocs;
|
||||
use eza\lnurl;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
@@ -22,6 +23,7 @@ final class LnurlAuthController extends Controller
|
||||
* This endpoint is called by Lightning wallets during LNURL-Auth authentication flow.
|
||||
* It validates the signature provided by wallet against the stored challenge (k1).
|
||||
*/
|
||||
#[ExcludeRouteFromDocs]
|
||||
public function callback(Request $request): JsonResponse
|
||||
{
|
||||
try {
|
||||
@@ -230,6 +232,7 @@ final class LnurlAuthController extends Controller
|
||||
*
|
||||
* This endpoint is polled by the frontend to detect authentication failures.
|
||||
*/
|
||||
#[ExcludeRouteFromDocs]
|
||||
public function checkError(Request $request): JsonResponse
|
||||
{
|
||||
$k1 = $request->input('k1');
|
||||
|
||||
Reference in New Issue
Block a user