refactor: make WebAppFileMap a pointer in WebAppMetadata
This commit is contained in:
parent
cb7295408c
commit
6c3af96077
|
@ -21,10 +21,10 @@ type WebAppMetadata struct {
|
|||
TryFiles []string `json:"tryFiles"`
|
||||
ErrorPages map[int]string `json:"errorPages"`
|
||||
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{
|
||||
Name: name,
|
||||
TryFiles: tryFiles,
|
||||
|
|
Loading…
Reference in New Issue