1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-17 15:49:53 +00:00

Change RequestHandler signature

This commit is contained in:
Darren Shepherd
2018-01-30 16:49:37 -07:00
parent fe053853bb
commit 87d5ab06b9
8 changed files with 22 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ type Subscribe struct {
ProjectID string `norman:"type=reference[project]"`
}
func Handler(apiContext *types.APIContext) error {
func Handler(apiContext *types.APIContext, _ types.RequestHandler) error {
err := handler(apiContext)
if err != nil {
logrus.Errorf("Error during subscribe %v", err)