cds-snc / node-starter-app

Quick start application setup.... because you have to start somewhere.
MIT License
5 stars 3 forks source link

Adding extra view data for post routes #103

Closed timarney closed 4 years ago

timarney commented 4 years ago

The current post / render setup doesn't allow us to add more data outside of the session

See: https://github.com/cds-snc/node-starter-app/blob/master/utils/validate.helpers.js#L93

This is a quick workaround for now: https://github.com/cds-snc/simplify-privacy-statements-V2/pull/99/files

Also used this in the Grant App

Need to look into doing this properly .... ideally letting the route do the render.

Found in the Grant App also reported by @sastels in the privacy statements app.

timarney commented 4 years ago

Closed by https://github.com/cds-snc/node-starter-app/pull/133