Skip to content

Instantly share code, notes, and snippets.

@kamal-kambe
Created August 1, 2019 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamal-kambe/ab9c4c0c48f701fdb86fbc88d2d78dca to your computer and use it in GitHub Desktop.
Save kamal-kambe/ab9c4c0c48f701fdb86fbc88d2d78dca to your computer and use it in GitHub Desktop.
package handler
import (
"net/http"
"github.com/go-chi/chi"
"sample-app/handler/api"
"sample-app/service"
)
func InitRouter(f service.Factory) *chi.Mux {
r := chi.NewRouter()
// handlers
base := api.NewBase(f)
r.Get("/getGameData", base.GameData())
return r
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment