// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, WebpollContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseCors("MyPolicy"); app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Gebruiker API v1"); }); app.UseHttpsRedirection(); app.UseAuthentication(); app.UseMvc(); DBInitializer.Initialize(context); }
public PollUserController(WebpollContext context) { _context = context; }
public AntwoordController(WebpollContext context) { _context = context; }
public StemController(WebpollContext context) { _context = context; }
public UserController(IUserService userService, WebpollContext context) { _userService = userService; _context = context; }
public VriendController(WebpollContext context) { _context = context; }
public UserService(IOptions <AppSettings> appSettings, WebpollContext webpollContext) { _appSettings = appSettings.Value; _webpollContext = webpollContext; }