New features: - Automatic error reporting (enabled by default) - Increase build times by leveraging docker build caches - Fixes: - Fix error handling - Fix vue autodetect - Custom dockerfile is not the default Others: - Cleanup `logs-servers` collection, because old errors are not standardized - New Traefik proxy version - Standardized directory configurations
15 lines
358 B
JavaScript
15 lines
358 B
JavaScript
const Server = require('../../../models/Logs/Server')
|
|
module.exports = async function (fastify) {
|
|
fastify.get('/', async (request, reply) => {
|
|
try {
|
|
const serverLogs = await Server.find().select('-_id -__v')
|
|
// TODO: Should do better
|
|
return {
|
|
serverLogs
|
|
}
|
|
} catch (error) {
|
|
throw new Error(error)
|
|
}
|
|
})
|
|
}
|