Skip to content

Commit

Permalink
Merge pull request #267 from traPtitech/issue-261
Browse files Browse the repository at this point in the history
GET /api/files/:idを認証なしに
  • Loading branch information
nagatea authored Nov 28, 2019
2 parents 16ce45e + f2b417b commit a1b3344
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ func SetupRouting(e *echo.Echo, client Traq) {
apiFiles := api.Group("/files")
{
apiFiles.POST("", PostFile, middleware.BodyLimit("3MB"))
apiFiles.GET("/:id", GetFile)
}

}
e.GET("/api/files/:id", GetFile)
}

0 comments on commit a1b3344

Please sign in to comment.