traPtitech / Jomon

Account Support System for traP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

routerのapi.Groupの名前が怪しい

mehm8128 opened this issue · comments

Jomon/router/router.go

Lines 57 to 63 in eb18a48

apiComments := api.Group("/transactions", h.CheckLoginMiddleware)
{
apiComments.GET("", h.GetTransactions)
apiComments.POST("", h.PostTransaction, h.CheckAdminMiddleware)
apiComments.GET("/:transactionID", h.GetTransaction)
apiComments.PUT("/:transactionID", h.PutTransaction, h.CheckAdminMiddleware)
}

ここapiTransactionsな気がします(v1のコピペしてそのままになってそう)