diff options
Diffstat (limited to 'system/addon/server.go')
-rw-r--r-- | system/addon/server.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/system/addon/server.go b/system/addon/server.go new file mode 100644 index 0000000..8e5ab3b --- /dev/null +++ b/system/addon/server.go @@ -0,0 +1,13 @@ +package addon + +import ( + "net/http" + + "github.com/ponzu-cms/ponzu/system/admin/user" +) + +// Run adds Handlers to default http listener for Addon +func Run() { + http.HandleFunc("/admin/addons", user.Auth(addonsHandler)) + http.HandleFunc("/admin/addon", user.Auth(addonHandler)) +} |