fix: need to use WebAppErrorPages in WebAppMetadata
This commit is contained in:
parent
96d99bb533
commit
a02458b597
|
@ -23,12 +23,12 @@ type WebAppMetadata struct {
|
||||||
BaseMetadata
|
BaseMetadata
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
TryFiles []string `json:"tryFiles"`
|
TryFiles []string `json:"tryFiles"`
|
||||||
ErrorPages map[int]string `json:"errorPages"`
|
ErrorPages WebAppErrorPages `json:"errorPages"`
|
||||||
ExtraMetadata ExtraMetadata `json:"extraMetadata"`
|
ExtraMetadata ExtraMetadata `json:"extraMetadata"`
|
||||||
Paths *WebAppFileMap `json:"paths"`
|
Paths *WebAppFileMap `json:"paths"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewWebAppMetadata(name string, tryFiles []string, extraMetadata ExtraMetadata, errorPages map[int]string, paths *WebAppFileMap) *WebAppMetadata {
|
func NewWebAppMetadata(name string, tryFiles []string, extraMetadata ExtraMetadata, errorPages WebAppErrorPages, paths *WebAppFileMap) *WebAppMetadata {
|
||||||
return &WebAppMetadata{
|
return &WebAppMetadata{
|
||||||
Name: name,
|
Name: name,
|
||||||
TryFiles: tryFiles,
|
TryFiles: tryFiles,
|
||||||
|
|
Loading…
Reference in New Issue