private log
This commit is contained in:
parent
0c60d6fab2
commit
cb52ae28a4
|
|
@ -336,6 +336,16 @@ Route.post("/api/private-log/getFileOnFolder", async ({ request, response }) =>
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Route.post("/api/private-log/readFile", async ({ request, response }) => {
|
||||||
|
try {
|
||||||
|
let result = [];
|
||||||
|
let path = request.all().filePath;
|
||||||
|
return fs.readFile(path)
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
Route.post("/api/test", async () => {
|
Route.post("/api/test", async () => {
|
||||||
try {
|
try {
|
||||||
const logs = await Cache.get('logs')
|
const logs = await Cache.get('logs')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue