async function getMiddlewares(names) {
    let middlewares = {};
    try {
        await Promise.all(names.map(async name => {
            middlewares[name] = (await import(`@/middlewares/${name}.js`)).default;
        }));
        return middlewares;
    }
    catch (e) {
        console.log('[Lavas] fail to import middleware: ', e);
    }
}
@file middleware
@author *__ author __*{% if: *__ email __* %}(*__ email __*){% /if %}