An open API service indexing awesome lists of open source software.

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

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")
```