mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 16:52:18 +00:00
Remove useless todo
This commit is contained in:
parent
93572c4e02
commit
0e26dc48e9
@ -206,8 +206,6 @@ module.exports = {
|
|||||||
if (strapi.models.hasOwnProperty(type)) {
|
if (strapi.models.hasOwnProperty(type)) {
|
||||||
_.forEach(strapi.models[type].associations, function (relation) {
|
_.forEach(strapi.models[type].associations, function (relation) {
|
||||||
const PK = utilsORM.getPK(relation.model) || utilsORM.getPK(relation.collection);
|
const PK = utilsORM.getPK(relation.model) || utilsORM.getPK(relation.collection);
|
||||||
// TODO:
|
|
||||||
// - Use matched route
|
|
||||||
const availableRoutes = {
|
const availableRoutes = {
|
||||||
relSlSelf: utils.isRoute('GET /' + type + '/:' + PK + '/relationships/:relation'),
|
relSlSelf: utils.isRoute('GET /' + type + '/:' + PK + '/relationships/:relation'),
|
||||||
relSlRelated: utils.isRoute('GET /' + type + '/:' + PK),
|
relSlRelated: utils.isRoute('GET /' + type + '/:' + PK),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user