budibase/packages/server/src/api/controllers/integration.js

12 lines
242 B
JavaScript
Raw Normal View History

2020-11-26 15:43:56 +01:00
const { definitions } = require("../../integrations")
2021-05-03 09:31:09 +02:00
exports.fetch = async function (ctx) {
2020-11-26 15:43:56 +01:00
ctx.status = 200
ctx.body = definitions
}
2020-12-18 19:19:43 +01:00
2021-05-03 09:31:09 +02:00
exports.find = async function (ctx) {
2020-12-18 19:19:43 +01:00
ctx.status = 200
ctx.body = definitions[ctx.params.type]
}