Archived
1
This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
wind8_fetcher/api/fetch_request/exported.go

19 lines
368 B
Go
Raw Normal View History

2017-10-27 07:45:21 +04:00
package fetchrequest
import (
// local
"source.wtfteam.pro/wind8/wind8_fetcher/lib/appcontext"
2017-10-27 07:45:21 +04:00
)
var (
c *appcontext.Context
)
// Initialize is an initialization function for call request handler
func Initialize(ac *appcontext.Context) {
c = ac
c.Log.Info("Initializing action for /fetch route...")
c.HTTPServerMux.HandleFunc("/fetch", HandleFetchRequest)
}