2021-04-22 03:46:51 +12:00
|
|
|
// const { generateTemplateID, getTemplateParams, StaticDatabases } = require("@budibase/auth").db
|
|
|
|
// const { CouchDB } = require("../../../db")
|
2021-04-22 03:42:44 +12:00
|
|
|
|
2021-04-22 03:46:51 +12:00
|
|
|
// const GLOBAL_DB = StaticDatabases.GLOBAL.name
|
2021-04-22 03:42:44 +12:00
|
|
|
|
2021-04-22 03:46:51 +12:00
|
|
|
exports.save = async ctx => {
|
|
|
|
// const db = new CouchDB(GLOBAL_DB)
|
|
|
|
// const id = generateTemplateID()
|
|
|
|
ctx.body = {}
|
2021-04-22 03:42:44 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
exports.fetch = async ctx => {
|
2021-04-22 03:46:51 +12:00
|
|
|
// const db = new CouchDB(GLOBAL_DB)
|
|
|
|
ctx.body = {}
|
2021-04-22 03:42:44 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
exports.find = async ctx => {
|
2021-04-22 03:46:51 +12:00
|
|
|
// const db = new CouchDB(GLOBAL_DB)
|
|
|
|
ctx.body = {}
|
2021-04-22 03:42:44 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
exports.destroy = async ctx => {
|
2021-04-22 03:46:51 +12:00
|
|
|
// const db = new CouchDB(GLOBAL_DB)
|
|
|
|
ctx.body = {}
|
2021-04-22 03:42:44 +12:00
|
|
|
}
|