Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我用的thinkphp5.1版本,我设置路由但是用不起呢 #19

Open
longhu1988520 opened this issue Oct 18, 2018 · 0 comments
Open

Comments

@longhu1988520
Copy link

$api = new \Zewail\Api\Routing\Router;
$api->version('v1', function () {
    // TODO 可以是thinkphp自带的路由
    Route::rule('user/login','admin/Login/login','post')->ext('html');
    Route::rule('verify','api/Verify/index','get')->ext('html');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant