Router
GoCollaborate uses gorilla/mux for server routing. The Job handlers are automatically mapped as of your project structure, but you can still configure your own routes (say, when you need to deploy another port, or extend the router in some cases) by simply calling the method store.GetRouter()
:
import (
// ...
"github.com/GoCollaborate/src/store"
)
router := store.GetRouter()
router.HandleFunc("/your_route",your_handler)
.Methods(string[]{"GET","POST","or_other_methods"})
.Name("your_route_name")