fix(api): 统一API端点路径格式

统一所有API端点路径末尾添加斜杠,确保与后端API规范一致,
包括收藏、通知、景点和用户相关接口。
This commit is contained in:
2026-05-09 18:23:42 +08:00
parent f2b4beed0a
commit 0afd5bbb2c
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,13 +1,13 @@
import { get, post, put, del } from "@/utils/request";
import { API_BASE } from "@/utils/config";
export const getSpots = (params) => get("/spots", params);
export const getSpots = (params) => get("/spots/", params);
export const getNearbySpots = (params) => get("/spots/nearby", params);
export const getSpotDetail = (id) => get(`/spots/${id}`);
export const createSpot = (data) => post("/spots", data);
export const createSpot = (data) => post("/spots/", data);
export const updateSpot = (id, data) => put(`/spots/${id}`, data);