Skip to content

Remove Simple Routing and Query Routing? #1579

Answered by evantahler
evantahler asked this question in Ideas
Discussion options

You must be logged in to vote

@gcoonrod and I decided the path forward is:

  1. remove simpleRoutes and queryRoutes - it's confusing and violates the principal of least surprise. Folks know about routes.ts and expect to use it.
  2. To assist folks in getting the new actions working for the Web server, the npx generate action command will output a helpful hint like the following:
# npx generate action --name userEdit

To enable your new action in the webserver, please add `{path: '/userEdit', action: 'userEdit'}` to `src/config/routes.ts` under the HTTP method of your choice.
  1. We will change the default src/config/routes.ts to have all HTTP verbs expanded by default and include the example actions like status.

Replies: 5 comments 8 replies

Comment options

evantahler
Sep 3, 2020
Maintainer Author

You must be logged in to vote
0 replies
Comment options

evantahler
Sep 3, 2020
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@evantahler
Comment options

evantahler Sep 3, 2020
Maintainer Author

@evantahler
Comment options

evantahler Sep 3, 2020
Maintainer Author

@gcoonrod
Comment options

@evantahler
Comment options

evantahler Sep 4, 2020
Maintainer Author

Comment options

You must be logged in to vote
3 replies
@mfvargo
Comment options

@mfvargo
Comment options

@evantahler
Comment options

evantahler Sep 4, 2020
Maintainer Author

Comment options

evantahler
Sep 8, 2020
Maintainer Author

You must be logged in to vote
1 reply
@evantahler
Comment options

evantahler Oct 3, 2020
Maintainer Author

Answer selected by evantahler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants