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.

This commit is contained in:
Maxime Delporte
2025-10-10 16:15:30 +02:00
parent 4342a8df0d
commit e0931223e4
6 changed files with 77 additions and 8 deletions

8
.idea/dictionaries/project.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<component name="ProjectDictionaryState">
<dictionary name="project">
<words>
<w>httprouter</w>
<w>servemux</w>
</words>
</dictionary>
</component>