コード例 #1
0
ファイル: accounts.go プロジェクト: skarllot/gaccounting
func (s *AccountsController) SetRoutes(router gin.IRouter) gin.IRouter {
	g := router.Group("/accounts")
	g.GET("/", s.GetAccountList)
	g.GET("/:major", s.GetAccount)

	return g
}
コード例 #2
0
ファイル: accountminors.go プロジェクト: skarllot/gaccounting
func (s *AccountMinorsController) SetRoutes(router gin.IRouter) gin.IRouter {
	g := router.Group("/:major/minors")
	g.GET("/", s.GetMinorList)

	return router
}