text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const rest_1 = require("@loopback/rest");
  const sequence_1 = require("./sequence");
  const config = require("../../updateport");
  
  /* tslint:disable:no-unused-variable */
  // Binding and Booter imports are required to infer types for BootMixin!
  const boot_1 = require("@loopback/boot");
  // juggler imports are required to infer types for RepositoryMixin!
  const repository_1 = require("@loopback/repository");
  /* tslint:enable:no-unused-variable */
  class TestmoduleApplication extends boot_1.BootMixin(repository_1.RepositoryMixin(rest_1.RestApplication)) {
      constructor(options) {
   super({
              rest: {
                  port: config.port,
              },
          });       // Set up the custom sequence
          this.sequence(sequence_1.MySequence);
          this.projectRoot = __dirname;
          // Customize @loopback/boot Booter Conventions here
          this.bootOptions = {
              controllers: {
                  // Customize ControllerBooter Conventions here
                  dirs: ['controllers'],
                  extensions: ['.controller.js'],
                  nested: true,
              },
          };
      }
      async start() {
          await super.start();
          const server = await this.getServer(rest_1.RestServer);
          const port = await server.get('rest.port');
          console.log(`Server is running at http://127.0.0.1:${port}`);
          console.log(`Try http://127.0.0.1:${port}/ping`);
      }
  }
  exports.TestmoduleApplication = TestmoduleApplication;
  //# sourceMappingURL=application.js.map