You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After enabling blueprint autorouting and the custom "prefix" setting, unexpected extra shadow route (sails.config.blueprints.actions + sails.config.blueprints.prefix)
#4368
Open
bysouleater opened this issue
Apr 20, 2018
· 1 comment
Sails version: 1.0.1 Node version: 9.11.1 NPM version: 5.6.0 DB adapter name: N/A DB adapter version: N/A Operating system: macOS High Sierra 10.13.4
Hi, I'm having an issue with the automatic routes generated by sails.
I have created a DocumentationController.js file inside api/controllers folder and added an action called index.
I have changed blueprints.jsactions config to true.
When I lift the app, I can navigate http://localhost:1337/documentation and the method works correctly.
Now, when I add prefix: '/content' to blueprints.js file and lift the app again, I can navigate http://localhost:1337/documentation (works correctly) and http://localhost:1337/content/documentation (does not work), but http://localhost:1337/content/documentation/index does respond correctly.
Correct me if I'm wrong, but I believe this was not the intended functionality.
Thanks!
The text was updated successfully, but these errors were encountered:
mikermcneil
changed the title
Default Controller action does not work automatic route when prefix
After enabling blueprint autorouting and the custom "prefix" setting, unexpected extra shadow route (sails.config.blueprints.actions + sails.config.blueprints.prefix)
Apr 26, 2018
Sails version: 1.0.1
Node version: 9.11.1
NPM version: 5.6.0
DB adapter name: N/A
DB adapter version: N/A
Operating system: macOS High Sierra 10.13.4
Hi, I'm having an issue with the automatic routes generated by sails.
I have created a
DocumentationController.js
file insideapi/controllers
folder and added an action calledindex
.I have changed
blueprints.js
actions
config totrue
.When I lift the app, I can navigate
http://localhost:1337/documentation
and the method works correctly.Now, when I add
prefix: '/content'
toblueprints.js
file and lift the app again, I can navigatehttp://localhost:1337/documentation
(works correctly) andhttp://localhost:1337/content/documentation
(does not work), buthttp://localhost:1337/content/documentation/index
does respond correctly.Correct me if I'm wrong, but I believe this was not the intended functionality.
Thanks!
The text was updated successfully, but these errors were encountered: