9 lines
304 B
JavaScript
9 lines
304 B
JavaScript
import {encodeResources, loadResources} from '@/util/resources.server.js';
|
|
|
|
export async function action({request}) {
|
|
const paths = await request.json();
|
|
const assets = await loadResources();
|
|
const buffer = await encodeResources(paths.map((path) => assets[path]));
|
|
return new Response(buffer);
|
|
}
|