@darthcav/ts-http-server
    Preparing search index...

    Function defaultRoutes

    • Returns the default route map used in launcher.

      Registers:

      • GET / — renders index.ejs for text/html, throws 406 otherwise.
      • DELETE|PATCH|POST|PUT|OPTIONS / — responds with 405 Method Not Allowed.
      • GET /api/ — returns a JSON welcome message.
      • DELETE|PATCH|POST|PUT /api/ — responds with 405 Method Not Allowed.

      Authentication is handled globally by the preHandler hook registered in launcher when locals.authPaths is set.

      Returns Map<
          string,
          RouteOptions<
              RawServerDefault,
              IncomingMessage,
              ServerResponse<IncomingMessage>,
              RouteGenericInterface,
              unknown,
              FastifySchema,
              FastifyTypeProviderDefault,
              FastifyBaseLogger,
          >,
      >