NewAPI instantiates a new REST API
(globalConfig *conf.GlobalConfiguration, db *storage.Connection)
| 73 | |
| 74 | // NewAPI instantiates a new REST API |
| 75 | func NewAPI(globalConfig *conf.GlobalConfiguration, db *storage.Connection) *API { |
| 76 | return NewAPIWithVersion(context.Background(), globalConfig, db, defaultVersion) |
| 77 | } |
| 78 | |
| 79 | // NewAPIWithVersion creates a new REST API using the specified version |
| 80 | func NewAPIWithVersion(ctx context.Context, globalConfig *conf.GlobalConfiguration, db *storage.Connection, version string) *API { |
nothing calls this directly
no test coverage detected
searching dependent graphs…