Ejemplo n.º 1
0
        public void ConfigureServices(IServiceCollection services)
        {
            ServiceRegistrar.RegisterCustomServices(services);

            services.AddMvc();
            services.AddAutoMapper(typeof(Startup));
            services.AddControllers();
            services.AddSwaggerGen(c => {
                c.SwaggerDoc("v1", new Microsoft.OpenApi.Models.OpenApiInfo {
                    Title = "Hepsi API", Version = "V1"
                });
            });
        }