add mutate on row actions
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
const data = [
|
||||
{
|
||||
id : 1,
|
||||
name : "تهران"
|
||||
id: 1,
|
||||
name: "تهران",
|
||||
},
|
||||
{
|
||||
id : 2,
|
||||
name : "ری"
|
||||
id: 2,
|
||||
name: "ری",
|
||||
},
|
||||
{
|
||||
id : 3,
|
||||
name : "اندیشه"
|
||||
id: 3,
|
||||
name: "اندیشه",
|
||||
},
|
||||
];
|
||||
|
||||
export async function GET() {
|
||||
return Response.json({ data });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,41 +1,41 @@
|
||||
const data = [
|
||||
{
|
||||
id : 1,
|
||||
aplication_number : 1,
|
||||
application_date : "1",
|
||||
province:"tehran",
|
||||
city:"tehran"
|
||||
id: 1,
|
||||
aplication_number: 1,
|
||||
application_date: "1",
|
||||
province: "tehran",
|
||||
city: "tehran",
|
||||
},
|
||||
{
|
||||
id : 2,
|
||||
aplication_number : 2,
|
||||
application_date : "1",
|
||||
province:"tehran",
|
||||
city:"tehran"
|
||||
id: 2,
|
||||
aplication_number: 2,
|
||||
application_date: "1",
|
||||
province: "tehran",
|
||||
city: "tehran",
|
||||
},
|
||||
{
|
||||
id : 3,
|
||||
aplication_number : 3,
|
||||
application_date : "1",
|
||||
province:"tehran",
|
||||
city:"tehran"
|
||||
id: 3,
|
||||
aplication_number: 3,
|
||||
application_date: "1",
|
||||
province: "tehran",
|
||||
city: "tehran",
|
||||
},
|
||||
{
|
||||
id : 4,
|
||||
aplication_number : 4,
|
||||
application_date : "1",
|
||||
province:"tehran",
|
||||
city:"tehran"
|
||||
id: 4,
|
||||
aplication_number: 4,
|
||||
application_date: "1",
|
||||
province: "tehran",
|
||||
city: "tehran",
|
||||
},
|
||||
{
|
||||
id : 5,
|
||||
aplication_number : 5,
|
||||
application_date : "1",
|
||||
province:"tehran",
|
||||
city:"tehran"
|
||||
id: 5,
|
||||
aplication_number: 5,
|
||||
application_date: "1",
|
||||
province: "tehran",
|
||||
city: "tehran",
|
||||
},
|
||||
];
|
||||
|
||||
export async function GET() {
|
||||
return Response.json({ data });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
const data = [
|
||||
{
|
||||
id : 1,
|
||||
name : "تهران"
|
||||
id: 1,
|
||||
name: "تهران",
|
||||
},
|
||||
{
|
||||
id : 2,
|
||||
name : "مشهد"
|
||||
id: 2,
|
||||
name: "مشهد",
|
||||
},
|
||||
{
|
||||
id : 3,
|
||||
name : "اصفهان"
|
||||
id: 3,
|
||||
name: "اصفهان",
|
||||
},
|
||||
];
|
||||
|
||||
export async function GET() {
|
||||
return Response.json({ data });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export async function POST() {
|
||||
return Response.json({message : "Done"});
|
||||
}
|
||||
return Response.json({ message: "Done" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user