Add api prefix to routes

master
bel 2020-04-12 17:02:23 +00:00
parent 0b4ecd1916
commit 1a3ba7c5e9
1 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@ import (
func (s *Server) Routes() error { func (s *Server) Routes() error {
routes := map[string]http.HandlerFunc{ routes := map[string]http.HandlerFunc{
"v1/balance": s.balance1, "api/v1/balance": s.balance1,
"v1/transaction": s.transaction1, "api/v1/transaction": s.transaction1,
"v1/account": s.account1, "api/v1/account": s.account1,
} }
for path, handler := range routes { for path, handler := range routes {
if err := s.Add(path, handler); err != nil { if err := s.Add(path, handler); err != nil {