1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00
budibase/packages/server/src/api/controllers/integration.js
Keviin Åberg Kultalahti 4ec2e7d01f lint:fix
2021-05-03 09:31:09 +02:00

13 lines
288 B
JavaScript

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