Browse Source

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

master
Andrew Kingston 6 years ago
parent
commit
c425ec4d2f
  1. 10
      packages/server/src/api/routes/record.js

10
packages/server/src/api/routes/record.js

@ -6,6 +6,16 @@ const { READ_MODEL, WRITE_MODEL } = require("../../utilities/accessLevels")
const 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(
"/api/:modelId/records",
authorized(READ_MODEL, ctx => ctx.params.modelId),

Loading…
Cancel
Save