Sunday 24 June 2018

Dumb question: Is this the 'right' way to make GET requests?

Node noob here. I have a button and when it's clicked, I want the user to be sent to a different page. In my (Jade/Pug) view, I have a form with a button inside it.I have the action set to /account and I have a route setup to call my account controller function which essentially calls render on the account view. Is the sample code below the 'right' way to make that get account request?form(action='/account', method='GET') .form-group button.btn.btn-primary(type='submit') View Account Thanks

Submitted June 24, 2018 at 10:10AM by phil917

No comments:

Post a Comment