Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit fd0a372

Browse files
pmuensMaciej Winnicki
authored and
Maciej Winnicki
committed
update emulator's invoke endpoint (#288)
Update the Emulators invoke endpoint since it was changed back to `/functions/*` (see: https://github.com/serverless/emulator/pull/121/files)
1 parent 28293c6 commit fd0a372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (f *Function) callEmulator(payload []byte) ([]byte, error) {
195195

196196
switch f.Provider.APIVersion {
197197
case "v0":
198-
emulatorURL.Path = path.Join(f.Provider.APIVersion, "emulator/api/function/invoke")
198+
emulatorURL.Path = path.Join(f.Provider.APIVersion, "emulator/api/functions/invoke")
199199
default:
200200
return nil, fmt.Errorf("Invalid Emulator API version %q for Function %q", f.Provider.APIVersion, f.ID)
201201
}

0 commit comments

Comments
 (0)