public SwaggerModule(ISwaggerProvider provider)
            : base(StaticConfiguration.ModulePath)
        {
            // Register resource listing route
            Get["/"] = _ => CreateStreamedJsonResponse(provider.GetResourceListing(this.ModulePath));

            foreach (var apiDeclaration in provider.GetApiDeclarations())
            {
                Get["/swagger" + apiDeclaration.BasePath] = _ => CreateStreamedJsonResponse(apiDeclaration);
            }
        }