mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:18:31 +02:00
api: fix validation and http response
This commit is contained in:
@@ -67,8 +67,8 @@ func Load() (*Config, E.Error) {
|
||||
}
|
||||
|
||||
func Validate(data []byte) E.Error {
|
||||
var model *types.Config
|
||||
return utils.DeserializeYAML(data, model)
|
||||
var model types.Config
|
||||
return utils.DeserializeYAML(data, &model)
|
||||
}
|
||||
|
||||
func MatchDomains() []string {
|
||||
|
||||
Reference in New Issue
Block a user