From 1a3ba7c5e920d419972cb906d29e3c4273da3d49 Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 12 Apr 2020 17:02:23 +0000 Subject: [PATCH] Add api prefix to routes --- server/routes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/routes.go b/server/routes.go index aaf3642..2d8eec0 100644 --- a/server/routes.go +++ b/server/routes.go @@ -9,9 +9,9 @@ import ( func (s *Server) Routes() error { routes := map[string]http.HandlerFunc{ - "v1/balance": s.balance1, - "v1/transaction": s.transaction1, - "v1/account": s.account1, + "api/v1/balance": s.balance1, + "api/v1/transaction": s.transaction1, + "api/v1/account": s.account1, } for path, handler := range routes { if err := s.Add(path, handler); err != nil {