refactoring API and added dbs: postgres, bolt

This commit is contained in:
Pedro Nasser
2016-07-21 16:04:58 -03:00
parent edc126eb81
commit 66fa3d4035
19 changed files with 791 additions and 688 deletions

15
api/models/error.go Normal file
View File

@@ -0,0 +1,15 @@
package models
import "errors"
type Error struct {
Error *ErrorBody `json:"error,omitempty"`
}
func (m *Error) Validate() error {
return nil
}
var (
ErrInvalidJSON = errors.New("Could not create app")
)