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, }) }
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) }
func (s *SenderService) SetFrontendHandlers(router *frontend.Router) { router.GET(s, "/"+s.GetName(), &IndexHandler{}) }
func (s *AwsService) SetFrontendHandlers(router *frontend.Router) { router.GET(s, "/aws", &IndexHandler{}) }
func (s *SlackService) SetFrontendHandlers(router *frontend.Router) { router.GET(s, "/slack", &IndexHandler{}) }