Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Api ¶
func Api(conf *config.Config, nav *navigation.NavigationItem, r *http.Request) (data map[string]interface{}, dataErr error)
Api uses the passed in nav item to work out the api urls to call, fetches the data and returns map of that - api urls have substitutions like {month} resolved before calling - multiple apis urls to call generate data with prefix based on their config name
- "list": "/url"
- "home": "/home" would generate List<Key> and Home<key> data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.