2020-12-29 13:46:58 +01:00
|
|
|
package handlers
|
|
|
|
|
2021-01-02 11:56:24 +01:00
|
|
|
import (
|
|
|
|
"gitlab.larvit.se/power-plan/auth/src/db"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Handlers is the overall struct for all http request handlers
|
|
|
|
type Handlers struct {
|
|
|
|
Db db.Db
|
|
|
|
}
|
|
|
|
|
2020-12-29 13:46:58 +01:00
|
|
|
// ResJSONError is an error field that is used in JSON error responses
|
|
|
|
type ResJSONError struct {
|
|
|
|
Error string `json:"error"`
|
|
|
|
Field string `json:"field,omitempty"`
|
|
|
|
}
|