NewAPI instantiates a new REST API
(globalConfig *conf.GlobalConfiguration, db *storage.Connection, opt ...Option)
| 77 | |
| 78 | // NewAPI instantiates a new REST API |
| 79 | func NewAPI(globalConfig *conf.GlobalConfiguration, db *storage.Connection, opt ...Option) *API { |
| 80 | return NewAPIWithVersion(globalConfig, db, defaultVersion, opt...) |
| 81 | } |
| 82 | |
| 83 | func (a *API) deprecationNotices() { |
| 84 | config := a.config |