From 2acb5486157691c5b52656f7b45e0a2ab18d1c68 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 3 Nov 2017 17:47:52 -0400 Subject: PLT-8086 Fix plugin config watcher for enabling and disabling (#7770) * Fix plugin config watcher for enabling and disabling * Make sure HTTP routes are served * Set content-type explicitly --- app/app.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/app.go') diff --git a/app/app.go b/app/app.go index a8d2977b5..80dc5a8ab 100644 --- a/app/app.go +++ b/app/app.go @@ -93,6 +93,9 @@ func New(options ...Option) *App { app.Srv.Store = app.newStore() app.initJobs() + app.Srv.Router.HandleFunc("/plugins/{plugin_id:[A-Za-z0-9\\_\\-\\.]+}", app.ServePluginRequest) + app.Srv.Router.HandleFunc("/plugins/{plugin_id:[A-Za-z0-9\\_\\-\\.]+}/{anything:.*}", app.ServePluginRequest) + app.Srv.Router.NotFoundHandler = http.HandlerFunc(app.Handle404) app.Srv.WebSocketRouter = &WebSocketRouter{ -- cgit v1.2.3-1-g7c22