@novice1/frame - v0.3.1
    Preparing search index...

    Class Frame

    Hierarchy

    • FrameworkApp
      • Frame
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    docs: { openapi: OpenAPI; postman: Postman }

    Accessors

    Methods

    • Type Parameters

      • T extends ServerOptions<typeof IncomingMessage, typeof ServerResponse> = ServerOptions<typeof IncomingMessage, typeof ServerResponse>

      Parameters

      • Optionaloptions: null | T
      • Optionalmod: {
            createServer(
                requestListener?: RequestListener<
                    typeof IncomingMessage,
                    typeof ServerResponse,
                >,
            ): Server;
            createServer(
                options: T,
                requestListener?: RequestListener<
                    typeof IncomingMessage,
                    typeof ServerResponse,
                >,
            ): Server;
        }

        Module that will create the server (e.g.: require('https'))

      Returns Server

      const https = require('https');
      const server = app.build(HTTPS_SERVER_OPTIONS, https);
      server.listen(PORT);
    • Returns void

      fix refresh for postman (problem: it adds the same routes multiple time)