2020-11-27 03:43:56 +13:00
|
|
|
const { definitions } = require("../../integrations")
|
|
|
|
|
2021-05-03 19:31:09 +12:00
|
|
|
exports.fetch = async function (ctx) {
|
2020-11-27 03:43:56 +13:00
|
|
|
// TODO: fetch these from a github repo etc
|
|
|
|
ctx.status = 200
|
|
|
|
ctx.body = definitions
|
|
|
|
}
|
2020-12-19 07:19:43 +13:00
|
|
|
|
2021-05-03 19:31:09 +12:00
|
|
|
exports.find = async function (ctx) {
|
2020-12-19 07:19:43 +13:00
|
|
|
ctx.status = 200
|
|
|
|
ctx.body = definitions[ctx.params.type]
|
|
|
|
}
|