From 1d62b09792b25e465488f9661e6a3a9b3b997bce Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 17 Sep 2018 18:34:46 +0200 Subject: [PATCH] Moved swaggerdocs to /api/v1/swagger --- routes/routes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/routes.go b/routes/routes.go index 3fa4e9a5..33944f8f 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -57,12 +57,12 @@ func RegisterRoutes(e *echo.Echo) { AllowOrigins: []string{"*"}, })) - // Swagger UI - e.Static("/swagger", "public/swagger") - // API Routes a := e.Group("/api/v1") + // Swagger UI + a.Static("/swagger", "public/swagger") + a.POST("/login", apiv1.Login) a.POST("/register", apiv1.RegisterUser)