fix: systeme metrics chart
This commit is contained in:
@@ -18,6 +18,10 @@ export default defineEventHandler(async (event) => {
|
||||
const folderName = typeof folder === "string" ? folder : null
|
||||
const fileName = typeof file === "string" ? file : null
|
||||
|
||||
if (!REMOTE_HOST) {
|
||||
throw createError({ statusCode: 503, statusMessage: "Service non configure" })
|
||||
}
|
||||
|
||||
if (!folderName || !fileName) {
|
||||
throw createError({ statusCode: 400, statusMessage: "Paramètres manquants" })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user