Created
August 1, 2019 06:50
-
-
Save kamal-kambe/ab9c4c0c48f701fdb86fbc88d2d78dca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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