// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(PollShareContext context, IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseCors("MyPolicy"); app.UseAuthentication(); app.UseMvc(); app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "PollShare API v1"); }); DBInitializer.Initialize(context); }
public VriendschapController(PollShareContext context) { _context = context; }
public GebruikerController(PollShareContext context, IGebruikerService gebruikerService) { _context = context; _gebruikerService = gebruikerService; }
public GebruikerService(IOptions <AppSettings> appSettings, PollShareContext pollShareContext) { _appSettings = appSettings.Value; _pollShareContext = pollShareContext; }
public PollGebruikerController(PollShareContext context) { _context = context; }
public PollController(PollShareContext context) { _context = context; }
public AntwoordController(PollShareContext context) { _context = context; }
public StemController(PollShareContext context) { _context = context; }
public MeldingController(PollShareContext context) { _context = context; }