From c7a4503dd2b7fc11d025b9d9a8ac86bf13f6db5b Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 2 Dec 2020 17:42:59 +0000 Subject: [PATCH] serve app assets --- packages/server/src/api/controllers/static/index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/server/src/api/controllers/static/index.js b/packages/server/src/api/controllers/static/index.js index c5bd80098a..50b1253e92 100644 --- a/packages/server/src/api/controllers/static/index.js +++ b/packages/server/src/api/controllers/static/index.js @@ -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 }) }