Initial commit
This commit is contained in:
23
api/exported.go
Normal file
23
api/exported.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
// local
|
||||
"lab.pztrn.name/fat0troll/wind8_fetcher/lib/appcontext"
|
||||
|
||||
// actions
|
||||
"lab.pztrn.name/fat0troll/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)
|
||||
}
|
||||
Reference in New Issue
Block a user