chore: Use ES modules for backend app
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import express from 'express';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
const appAssetsHandler = async (app) => {
|
||||
app.use('/apps/:appKey/assets/favicon.svg', (req, res, next) => {
|
||||
|
Reference in New Issue
Block a user