Commit f37514fe authored by Hedda's avatar Hedda
Browse files

#13 fetcher updated

parent 92fd4bec
...@@ -19,12 +19,9 @@ export const GetData = async (input) => { ...@@ -19,12 +19,9 @@ export const GetData = async (input) => {
} }
export const UpdatePopulatiry =(destinationID, newPopularity) => {
/* axios.post("http://it2810-10.idi.ntnu.no:3001/api/updateData", {
const UpdatePopulatiry =(destinationID, newPopularity) => {
Axios.post(API_URL + "updateData", {
id: destinationID, id: destinationID,
update: { popularity: newPopularity }, update: { popularity: newPopularity },
}) })
} }
*/
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment