0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 08:58:11 +00:00

bring admin.jsx

This commit is contained in:
Víctor Losada Hernández
2026-02-02 17:17:49 +01:00
parent 74733a4cca
commit 09171acc6e
6 changed files with 62 additions and 100 deletions

View File

@@ -44,7 +44,6 @@ export default async function createApp(vite) {
const isProd = nodeEnv === 'production';
const isLocalEnvironment = config.get('local_environments').includes(nodeEnv);
const sanitizeBrew = (brew, accessType)=>{
brew._id = undefined;
brew.__v = undefined;
@@ -114,7 +113,7 @@ export default async function createApp(vite) {
});
app.use(homebrewApi);
app.use(adminApi);
app.use(adminApi(vite));
app.use(vaultApi);
const welcomeText = fs.readFileSync('./client/homebrew/pages/homePage/welcome_msg.md', 'utf8');