6 lines
282 B
JavaScript
6 lines
282 B
JavaScript
import { get, post, del } from "@/utils/request";
|
|
|
|
export const getTags = (params) => get("/tags", params);
|
|
export const addTagToSpot = (spotId, data) => post(`/spots/${spotId}/tags`, data);
|
|
export const removeTagFromSpot = (spotId, tagId) => del(`/spots/${spotId}/tags/${tagId}`);
|