Archive now uses file system instead of collection
This commit is contained in:
6
app/imports/api/creature/archive/methods/readFile.js
Normal file
6
app/imports/api/creature/archive/methods/readFile.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { promises as fs } from 'fs';
|
||||
|
||||
// Read a file and return the result
|
||||
export default function read(file){
|
||||
return fs.readFile(file.path, 'utf8');
|
||||
}
|
||||
Reference in New Issue
Block a user