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
490c3174ca53eda584eed95114af48085048f773
greenlight
/
internal
/
data
History
Maxime Delporte
0824a127b9
Updating internal/data/movies.go to Get a movie from the database. Updating cmd/api/movies.go showMovieHandler method to fetch a movie from a request (using the MovieModel's Get method).
2025-11-07 10:58:58 +01:00
..
models.go
Updating movies.go with MovieModel: this struct is the gateway between our app and the database. Adding CRUD methods alongside for the Movie object. Creating models.go: this file holds a Models struct wrapping all of our Models. This way, we are able to use in our application struct in our main.go.
2025-11-06 10:41:12 +01:00
movies.go
Updating internal/data/movies.go to Get a movie from the database. Updating cmd/api/movies.go showMovieHandler method to fetch a movie from a request (using the MovieModel's Get method).
2025-11-07 10:58:58 +01:00
runtime.go
Updating createMovieHandler accepting data.Runtime for the Runtime field. Updating internal/data/runtime.go with the json.Unmarshaler interface to transform our client's runtime string field '%d mins' into a Runtime type format.
2025-10-27 20:03:52 +01:00