<?php

use App\Http\Controllers\Api\AuthController;
use App\Http\Controllers\Api\OLDLMS\ClaimController;
use App\Http\Controllers\Api\OLDLMS\MembershipController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('linksehat.old.auth')->group(function() {
    Route::post('check-membership', [MembershipController::class, 'check']);
    Route::post('check-limit', [MembershipController::class, 'checkLimit']);

    Route::post('claim-create', [ClaimController::class, 'store']);
});