complete design of adding new test and bundling and saving map data next step...
This commit is contained in:
18
src/app/api/fake-tests-type/route.js
Normal file
18
src/app/api/fake-tests-type/route.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const data = [
|
||||
{
|
||||
id: 1,
|
||||
name: "تست نوع 1",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "تست نوع 2",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: "تست نوع 3",
|
||||
},
|
||||
];
|
||||
|
||||
export async function GET() {
|
||||
return Response.json({data});
|
||||
}
|
||||
71
src/app/api/fake-tests/route.js
Normal file
71
src/app/api/fake-tests/route.js
Normal file
@@ -0,0 +1,71 @@
|
||||
const data = [
|
||||
{
|
||||
id: 1,
|
||||
test_type_name: 1,
|
||||
project_name: "نوع پروژه",
|
||||
employer: "کارفرما",
|
||||
consultant: "مشاور",
|
||||
contractor: "پیمانکار",
|
||||
applicant: "متقاضی",
|
||||
work_number: "شماره کار",
|
||||
request_number: "شماره درخواست",
|
||||
request_date: "تاریخ درخواست",
|
||||
report_date: "تاریخ گزارش"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
test_type_name: 5,
|
||||
project_name: "نوع پروژه",
|
||||
employer: "کارفرما",
|
||||
consultant: "مشاور",
|
||||
contractor: "پیمانکار",
|
||||
applicant: "متقاضی",
|
||||
work_number: "شماره کار",
|
||||
request_number: "شماره درخواست",
|
||||
request_date: "تاریخ درخواست",
|
||||
report_date: "تاریخ گزارش"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
test_type_name: 2,
|
||||
project_name: "نوع پروژه",
|
||||
employer: "کارفرما",
|
||||
consultant: "مشاور",
|
||||
contractor: "پیمانکار",
|
||||
applicant: "متقاضی",
|
||||
work_number: "شماره کار",
|
||||
request_number: "شماره درخواست",
|
||||
request_date: "تاریخ درخواست",
|
||||
report_date: "تاریخ گزارش"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
test_type_name: 4,
|
||||
project_name: "نوع پروژه",
|
||||
employer: "کارفرما",
|
||||
consultant: "مشاور",
|
||||
contractor: "پیمانکار",
|
||||
applicant: "متقاضی",
|
||||
work_number: "شماره کار",
|
||||
request_number: "شماره درخواست",
|
||||
request_date: "تاریخ درخواست",
|
||||
report_date: "تاریخ گزارش"
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
test_type_name: 3,
|
||||
project_name: "نوع پروژه",
|
||||
employer: "کارفرما",
|
||||
consultant: "مشاور",
|
||||
contractor: "پیمانکار",
|
||||
applicant: "متقاضی",
|
||||
work_number: "شماره کار",
|
||||
request_number: "شماره درخواست",
|
||||
request_date: "تاریخ درخواست",
|
||||
report_date: "تاریخ گزارش"
|
||||
},
|
||||
];
|
||||
|
||||
export async function GET() {
|
||||
return Response.json({data});
|
||||
}
|
||||
Reference in New Issue
Block a user