Skip to content

Commit c7dd881

Browse files
author
Amine Afia
authored
Change /json to /openapi.json (#92)
1 parent 99f24d4 commit c7dd881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func RunApi(cmd *cobra.Command, args []string) {
4343
// Add Swagger route
4444
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
4545
// Add Swagger JSON endpoint
46-
r.GET("/json", func(c *gin.Context) {
46+
r.GET("/openapi.json", func(c *gin.Context) {
4747
c.File("./docs/swagger.json")
4848
})
4949

0 commit comments

Comments
 (0)