fix(api): method fix
This commit is contained in:
@@ -6,7 +6,7 @@ import { Daily } from "./typing"
|
||||
export const getDailyWorkList = (data: Daily.Request) => {
|
||||
return httpFetch<Daily.Response>({
|
||||
url: BASE_LABEL_API + "/api/v1/label_server/daily_work/list",
|
||||
method: "post",
|
||||
method: "POST",
|
||||
body: JSON.stringify(data),
|
||||
headerAttr: {
|
||||
["Token"]: usePermissionStore.getState().token,
|
||||
@@ -18,7 +18,7 @@ export const getDailyWorkList = (data: Daily.Request) => {
|
||||
export const addDailyWorkData = (data: Daily.CreateProps) => {
|
||||
return httpFetch({
|
||||
url: BASE_LABEL_API + "/api/v1/label_server/daily_work/add",
|
||||
method: "post",
|
||||
method: "POST",
|
||||
body: JSON.stringify(data),
|
||||
headerAttr: {
|
||||
["Token"]: usePermissionStore.getState().token,
|
||||
|
||||
Reference in New Issue
Block a user