v1.0.6 (#30)
Features:
- Rust support 🦀 (Thanks to @pepoviola)
- Add a default rewrite rule to PHP apps (to index.php)
- Able to control upgrades in a straightforward way
Fixes:
- Improved upgrade scripts
- Simplified prechecks before deployment
- Fixed path deployments
- Fixed already defined apps redirections
- Better error handling - still needs a lot of improvement here!
			
			
This commit is contained in:
		
							
								
								
									
										14
									
								
								api/routes/v1/server/index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								api/routes/v1/server/index.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
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 { error, type: 'server' }
 | 
			
		||||
    }
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user