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

Issue with the main routes #658

may215 opened this Issue Aug 27, 2017 · 0 comments


None yet
1 participant

may215 commented Aug 27, 2017

There is an issue with the route parsing that leads to unknown controller actions.
I hacked it by adding: strings.ToUpper(strings.Split(path, "/")[2])

if strings.HasPrefix(path, "/api") && !strings.HasPrefix(route.ControllerName, "Api") { route.ControllerName = "Api" + strings.ToUpper(strings.Split(path, "/")[2]) } else if strings.HasPrefix(path, "/member") && !strings.HasPrefix(route.ControllerName, "Member") { // member设置 route.ControllerName = "Member" + route.ControllerName }

And now all the actions working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment