refer form admin city/province
This commit is contained in:
18
src/app/api/fake-cities/route.js
Normal file
18
src/app/api/fake-cities/route.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const data = [
|
||||
{
|
||||
id : 1,
|
||||
name : "تهران"
|
||||
},
|
||||
{
|
||||
id : 2,
|
||||
name : "ری"
|
||||
},
|
||||
{
|
||||
id : 3,
|
||||
name : "اندیشه"
|
||||
},
|
||||
];
|
||||
|
||||
export async function GET() {
|
||||
return Response.json({ data });
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
18
src/app/api/fake-provinces/route.js
Normal file
18
src/app/api/fake-provinces/route.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const data = [
|
||||
{
|
||||
id : 1,
|
||||
name : "تهران"
|
||||
},
|
||||
{
|
||||
id : 2,
|
||||
name : "مشهد"
|
||||
},
|
||||
{
|
||||
id : 3,
|
||||
name : "اصفهان"
|
||||
},
|
||||
];
|
||||
|
||||
export async function GET() {
|
||||
return Response.json({ data });
|
||||
}
|
||||
3
src/app/api/fake-submit/[id]/route.js
Normal file
3
src/app/api/fake-submit/[id]/route.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export async function POST() {
|
||||
return Response.json({message : "Done"});
|
||||
}
|
||||
Reference in New Issue
Block a user