auth.php 1.33 KB
<?php

use App\Http\Container\AppSection\Controllers\Auth\ChangeController;
use App\Http\Container\AppSection\Controllers\Auth\Group\CollectionActivityController as GroupCollectionActivityController;
use App\Http\Container\AppSection\Controllers\Auth\Group\MemberController as GroupMemberController;
use App\Http\Container\AppSection\Controllers\Auth\Group\ReceptionActivityController as GroupReceptionActivityController;
use App\Http\Container\AppSection\Controllers\Auth\PermissionController;
use App\Http\Container\AppSection\Controllers\Auth\RegisterController;
use App\Http\Container\AppSection\Controllers\Auth\ShareController;
use Illuminate\Support\Facades\Route;

Route::get('share_demos', [ShareController::class, 'demo']);
Route::get('permissions', PermissionController::class);

Route::post('register', RegisterController::class)->withoutMiddleware('auth:app');

Route::put('change-phone', [ChangeController::class, 'phone']);

Route::prefix('group')->group(function () {
    //Ta们的收藏的活动
    Route::apiResource('collection_activities', GroupCollectionActivityController::class)->only(['index', 'show']);
    //Ta们收到的活动
    Route::apiResource('reception_activities', GroupReceptionActivityController::class)->only(['index', 'show']);

    Route::apiResource('members', GroupMemberController::class)->only(['index', 'show']);
});