serve app assets
This commit is contained in:
parent
d7bff037bc
commit
c0c8c430ea
|
@ -190,15 +190,7 @@ exports.serveAttachment = async function(ctx) {
|
|||
|
||||
exports.serveAppAsset = async function(ctx) {
|
||||
// default to homedir
|
||||
const mainOrAuth =
|
||||
ctx.auth.authenticated === AuthTypes.APP ? "main" : "unauthenticated"
|
||||
|
||||
const appPath = resolve(
|
||||
budibaseAppsDir(),
|
||||
ctx.user.appId,
|
||||
"public",
|
||||
mainOrAuth
|
||||
)
|
||||
const appPath = resolve(budibaseAppsDir(), ctx.user.appId, "public")
|
||||
|
||||
await send(ctx, ctx.file, { root: ctx.devPath || appPath })
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue