Skip to content

Commit 077d575

Browse files
committed
put request
1 parent 77cb878 commit 077d575

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/PhraseAPI.js

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const PhraseAPI = {
1010
save : async (payload) => {
1111
const { data } = await api.post("/phrases", payload)
1212
return data
13+
},
14+
update : async (payload) => {
15+
const { data } = await api.put("/phrases", payload)
16+
return data
1317
}
1418
}
1519

0 commit comments

Comments
 (0)