16 lines
530 B
PHP
16 lines
530 B
PHP
<?php
|
|
|
|
// Prefix: /api/captcha
|
|
$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@getCaptchaApi']);
|
|
|
|
/**
|
|
* 需要认证的接口
|
|
*/
|
|
// $router->group(['middleware' => ['adminAuth']], function($router) {
|
|
// // $router->post('delete', ['as' => 'delete', 'uses' => 'CaptchaController@delete']);
|
|
// });
|
|
});
|