Skip to content

Commit

Permalink
update emulator's invoke endpoint (#288)
Browse files Browse the repository at this point in the history
Update the Emulators invoke endpoint since it was changed back to `/functions/*` (see: https://github.com/serverless/emulator/pull/121/files)
  • Loading branch information
pmuens authored and Maciej Winnicki committed Aug 15, 2017
1 parent 28293c6 commit fd0a372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (f *Function) callEmulator(payload []byte) ([]byte, error) {

switch f.Provider.APIVersion {
case "v0":
emulatorURL.Path = path.Join(f.Provider.APIVersion, "emulator/api/function/invoke")
emulatorURL.Path = path.Join(f.Provider.APIVersion, "emulator/api/functions/invoke")
default:
return nil, fmt.Errorf("Invalid Emulator API version %q for Function %q", f.Provider.APIVersion, f.ID)
}
Expand Down

0 comments on commit fd0a372

Please sign in to comment.