text: import express from 'express'; // Importando o express
  import routes from './router';
  
  
  class App{
      constructor(){
          this.server = express();
          this.middlewares();
          this.routes();
      }
  
      middlewares(){
          this.server.use(express.json())
      }
  
      routes(){
          this.server.use(routes);
      }
  }
  
  export default new App().server; 