1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

serve app assets

This commit is contained in:
Martin McKeaveney 2020-12-02 17:42:59 +00:00
parent f386d0c72b
commit c7a4503dd2

View file

@ -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 })
}