Logo
Explore Help
Sign In
giteacraftr.sxr08/greenlight
1
0
Fork 0
You've already forked greenlight
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
b76496e0963987ba11ad7c7cd9e6281a76d976aa
greenlight/internal/data
History
Maxime Delporte 1270a3bda6 Updating MovieModel's Delete method from internal/data/movies.go file. Create the deleteMovieHandler function inside cmd/api/movies.go. Adding the route into routes.go to delete a movie.
2025-11-07 11:37:19 +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 MovieModel's Delete method from internal/data/movies.go file. Create the deleteMovieHandler function inside cmd/api/movies.go. Adding the route into routes.go to delete a movie.
2025-11-07 11:37:19 +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
Powered by Gitea Version: 1.25.2 Page: 63ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API