1
0
Fork 0
mirror of synced 2024-08-28 16:31:48 +12:00

Merge branch 'linked-records' of github.com:Budibase/budibase into linked-records

This commit is contained in:
Andrew Kingston 2020-09-29 13:54:21 +01:00
commit c425ec4d2f

View file

@ -6,6 +6,16 @@ const { READ_MODEL, WRITE_MODEL } = require("../../utilities/accessLevels")
const router = Router() const router = Router()
router router
.get(
"/api/:modelId/:recordId/:fieldName/links",
authorized(READ_MODEL, ctx => ctx.params.modelId),
recordController.fetchLinkedRecords
)
.get(
"/api/:modelId/:recordId/links",
authorized(READ_MODEL, ctx => ctx.params.modelId),
recordController.fetchLinkedRecords
)
.get( .get(
"/api/:modelId/records", "/api/:modelId/records",
authorized(READ_MODEL, ctx => ctx.params.modelId), authorized(READ_MODEL, ctx => ctx.params.modelId),