<?php

declare(strict_types=1);


use Illuminate\Support\Facades\Route;
use Plugins\Neatstudio\Membership\Http\MembershipController;

Route::get('/membership', [MembershipController::class, 'index'])->name('membership.index');
Route::get('/membership/mine', [MembershipController::class, 'mine'])->middleware('auth')->name('membership.mine');
Route::post('/membership/{plan}/subscribe', [MembershipController::class, 'subscribe'])->middleware('auth')->name('membership.subscribe');
Route::post('/posts/{post}/unlock', [MembershipController::class, 'unlockPost'])->middleware('auth')->name('posts.unlock');
