2020-11-26 15:43:56 +01:00
|
|
|
const { definitions } = require("../../integrations")
|
|
|
|
|
|
|
|
exports.fetch = async function(ctx) {
|
|
|
|
// TODO: fetch these from a github repo etc
|
|
|
|
ctx.status = 200
|
|
|
|
ctx.body = definitions
|
|
|
|
}
|
2020-12-18 19:19:43 +01:00
|
|
|
|
|
|
|
exports.find = async function(ctx) {
|
|
|
|
ctx.status = 200
|
|
|
|
ctx.body = definitions[ctx.params.type]
|
|
|
|
}
|