zyejMAll-mobile/sheep/api/migration/index.js
2024-08-07 21:40:27 +08:00

11 lines
230 B
JavaScript

const files = import.meta.glob('./*.js', { eager: true });
let api = {};
Object.keys(files).forEach((key) => {
api = {
...api,
[key.replace(/(.*\/)*([^.]+).*/gi, '$2')]: files[key].default,
};
});
export default api;