dillonkearns / elm-pages

Hybrid Elm framework with full-stack and static routes.
https://elm-pages.com
BSD 3-Clause "New" or "Revised" License
658 stars 97 forks source link

Fix and expand ApiRoute example code #444

Closed adamdicarlo0 closed 11 months ago

adamdicarlo0 commented 1 year ago

Removed Server.Request.map4 and Server.Request.rawBody (which no longer exist), and added multiple path parameters to illustrate how they're used.

"Ignore whitespace" will better highlight what's actually changed.

netlify[bot] commented 1 year ago

Deploy request for elm-pages-todos pending review.

Visit the deploys page to approve it

Name Link
Latest commit 174589e585444be57e8136ff9045ef0013914b95
adamdicarlo0 commented 1 year ago

I was trying to use the example code to see what api-routes.json would look like, and ran into Server.Response.map* not existing. Since I reworked it and added a couple of path params for my own purposes, I figured I'd contribute this back.

dillonkearns commented 11 months ago

Thanks!