https://github.com/mukulmantosh/go-webapp
Golang Gorilla Mux with simple HTTP Routing for Movies
https://github.com/mukulmantosh/go-webapp
Last synced: 3 months ago
JSON representation
Golang Gorilla Mux with simple HTTP Routing for Movies
- Host: GitHub
- URL: https://github.com/mukulmantosh/go-webapp
- Owner: mukulmantosh
- Created: 2023-07-01T03:14:48.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-01T03:17:14.000Z (almost 2 years ago)
- Last Synced: 2025-03-25T05:04:21.720Z (3 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gorilla/Mux with HTTP
This is a simple app with basic HTTP route handling
```
router.HandleFunc("/movies", getMovies).Methods("GET")
router.HandleFunc("/movies/{id}", getMovie).Methods("GET")
router.HandleFunc("/movies", createMovie).Methods("POST")
router.HandleFunc("/movies/{id}", updateMovie).Methods("PUT")
router.HandleFunc("/movies/{id}", deleteMovie).Methods("DELETE")
```