1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00
budibase/packages/server/src/api/controllers/integration.js
2020-12-18 18:19:43 +00:00

14 lines
313 B
JavaScript

const { definitions } = require("../../integrations")
exports.fetch = async function(ctx) {
// TODO: fetch these from a github repo etc
console.log(definitions)
ctx.status = 200
ctx.body = definitions
}
exports.find = async function(ctx) {
ctx.status = 200
ctx.body = definitions[ctx.params.type]
}