fix api route

main
Shahriar (Sara) 2024-01-21 18:16:53 +03:30
parent cb10d1ab00
commit 3bc0cb8628
2 changed files with 16 additions and 10 deletions

2
package-lock.json generated
View File

@ -16866,4 +16866,4 @@
}
}
}
}
}

View File

@ -1,10 +1,16 @@
module.exports = [
{
method: "GET",
path: "/get-types",
handler: "explorerController.getTypes",
config: {
policies: [],
},
module.exports = {
"pass-data": {
type: "admin",
routes: [
{
method: "GET",
path: "/get-types",
handler: "explorerController.getTypes",
config: {
policies: [],
// auth: false,
},
},
],
},
];
};