Example #1
0
        public void Configure(IApplicationBuilder app, IHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.AddCorsConfiguration();

            app.UseAuthentication();

            app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Contents API V1"); });

            app.UseSwagger();

            app.UseRouting();
            app.UseAuthorization();
            app.AddEndpoints();
        }