Example #1
0
func (s *ApiService) SetFrontendHandlers(router *frontend.Router) {
	router.ServeFiles("/js/api/*filepath", &assetfs.AssetFS{
		Asset:     Asset,
		AssetDir:  AssetDir,
		AssetInfo: AssetInfo,
		Prefix:    "public/js",
	})

	router.GET(s, "/api", &IndexHandler{
		service: s,
		config:  s.config,
	})
}
Example #2
0
func (s *SmsService) SetFrontendHandlers(router *frontend.Router) {
	router.GET(s, "/sms", &IndexHandler{
		service: s,
	})

	handlerSend := &SendHandler{
		smsintel: s.sms,
	}
	router.GET(s, "/sms/send", handlerSend)
	router.POST(s, "/sms/send", handlerSend)
}
Example #3
0
func (s *SenderService) SetFrontendHandlers(router *frontend.Router) {
	router.GET(s, "/"+s.GetName(), &IndexHandler{})
}
Example #4
0
func (s *AwsService) SetFrontendHandlers(router *frontend.Router) {
	router.GET(s, "/aws", &IndexHandler{})
}
Example #5
0
func (s *SlackService) SetFrontendHandlers(router *frontend.Router) {
	router.GET(s, "/slack", &IndexHandler{})
}