refer form admin city/province

This commit is contained in:
2024-09-18 06:12:50 +00:00
committed by AmirHossein Mahmoodi
parent 9e1a5c2289
commit c854cf7b60
16 changed files with 527 additions and 22 deletions

View File

@@ -0,0 +1,18 @@
const data = [
{
id : 1,
name : "تهران"
},
{
id : 2,
name : "ری"
},
{
id : 3,
name : "اندیشه"
},
];
export async function GET() {
return Response.json({ data });
}

View File

@@ -1,5 +1,39 @@
const data = [
// put your fake data here
{
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 : 3,
aplication_number : 3,
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"
},
];
export async function GET() {

View File

@@ -0,0 +1,18 @@
const data = [
{
id : 1,
name : "تهران"
},
{
id : 2,
name : "مشهد"
},
{
id : 3,
name : "اصفهان"
},
];
export async function GET() {
return Response.json({ data });
}

View File

@@ -0,0 +1,3 @@
export async function POST() {
return Response.json({message : "Done"});
}