refactor: make WebAppFileMap a pointer in WebAppMetadata

This commit is contained in:
Derrick Hammer 2024-03-03 03:40:23 -05:00
parent cb7295408c
commit 6c3af96077
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -21,10 +21,10 @@ type WebAppMetadata struct {
TryFiles []string `json:"tryFiles"` TryFiles []string `json:"tryFiles"`
ErrorPages map[int]string `json:"errorPages"` ErrorPages map[int]string `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 map[int]string, paths *WebAppFileMap) *WebAppMetadata {
return &WebAppMetadata{ return &WebAppMetadata{
Name: name, Name: name,
TryFiles: tryFiles, TryFiles: tryFiles,