24 lines
413 B
Go
24 lines
413 B
Go
package api
|
|
|
|
import (
|
|
// local
|
|
"source.wtfteam.pro/wind8/wind8_fetcher/lib/appcontext"
|
|
|
|
// actions
|
|
"source.wtfteam.pro/wind8/wind8_fetcher/api/fetch_request"
|
|
)
|
|
|
|
var (
|
|
c *appcontext.Context
|
|
)
|
|
|
|
// Initialize prepares API endpoints to initialization
|
|
func Initialize(ac *appcontext.Context) {
|
|
c = ac
|
|
}
|
|
|
|
// InitializeEndpoints initializes API endpoints
|
|
func InitializeEndpoints() {
|
|
fetchrequest.Initialize(c)
|
|
}
|