// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, JudoContext judoContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseCors(builder => builder.AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader()); } app.UseAuthentication(); app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); DBInitializer.Initialize(judoContext); }
public TechniekenController(JudoContext context) { this.context = context; }
public GordelsController(JudoContext context) { this.context = context; }
public TokenController(IConfiguration config, JudoContext context) { _configuration = config; _context = context; }
public PersonenController(JudoContext context) { this.context = context; }