This website requires JavaScript.
Explore
Help
Sign In
giteacraftr.sxr08
/
greenlight
Watch
1
Star
0
Fork
0
You've already forked greenlight
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
1927c640472bed6410ed2a735b8b13150103385b
greenlight
/
cmd
/
api
History
Maxime Delporte
1927c64047
Creating an envelope struct type inside our helpers file to update our writeJSON data type method's parameter. Updating healthcheckHandler and showMovieHandler with this new type to update our responses.
2025-10-19 11:47:25 +02:00
..
healthcheck.go
Creating an envelope struct type inside our helpers file to update our writeJSON data type method's parameter. Updating healthcheckHandler and showMovieHandler with this new type to update our responses.
2025-10-19 11:47:25 +02:00
helpers.go
Creating an envelope struct type inside our helpers file to update our writeJSON data type method's parameter. Updating healthcheckHandler and showMovieHandler with this new type to update our responses.
2025-10-19 11:47:25 +02:00
main.go
Adding httprouter dependency to manage endpoints. Adding our routes to routes.go file facilitating endpoints management and adding POST /v1/movies and GET /v1/movies/:id endpoints. Updating main.go file removing ServeMux and add httprouter instead in app structure. Creating movies.go file to manage create and show movie endpoint.
2025-10-10 16:15:30 +02:00
movies.go
Creating an envelope struct type inside our helpers file to update our writeJSON data type method's parameter. Updating healthcheckHandler and showMovieHandler with this new type to update our responses.
2025-10-19 11:47:25 +02:00
routes.go
Adding httprouter dependency to manage endpoints. Adding our routes to routes.go file facilitating endpoints management and adding POST /v1/movies and GET /v1/movies/:id endpoints. Updating main.go file removing ServeMux and add httprouter instead in app structure. Creating movies.go file to manage create and show movie endpoint.
2025-10-10 16:15:30 +02:00