<?php

$router->group(['prefix' => 'captcha', 'as' => 'captcha'], function ($router) {

    // The controllers live in Domains/Captcha/Http/Controllers
    $router->addRoute(['GET', 'POST'], '/{config}', ['as' => 'index', 'uses' => 'CaptchaController@getCaptcha']);
    
    /**
     * 需要认证的接口
     */
    // $router->group(['middleware' => ['userAuth']], function($router) {
    //     // $router->post('delete', ['as' => 'delete', 'uses' => 'CaptchaController@delete']);
    // });
});
