fix: need to use WebAppErrorPages in WebAppMetadata

This commit is contained in:
Derrick Hammer 2024-03-03 04:34:03 -05:00
parent 96d99bb533
commit a02458b597
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 6 deletions

View File

@ -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,