Add api prefix to routes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user