<?php

use App\Http\Controllers\Api\AlbumController;
use App\Http\Controllers\Api\ContactController;
use App\Http\Controllers\Api\DeeplTranslateController;
use App\Http\Controllers\Api\DevelopmentController;
use App\Http\Controllers\Api\HomePageController;
use App\Http\Controllers\Api\NewsController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\RegisterLogController;
use App\Http\Middleware\VerifyApiKey;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/

Route::post('/qrcode/generate', [App\Http\Controllers\Api\QrcodeController::class, 'generate']);
Route::post('/qrcode/generate-from-oneapp', [App\Http\Controllers\Api\QrcodeController::class, 'generateFromOneApp']);
Route::middleware(VerifyApiKey::class)->group(function () {
    Route::post('/register-log', [RegisterLogController::class, 'store']);
});