// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, JAQ_BackendDevDbContext context, IServiceProvider serviceProvider) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Error"); app.UseHsts(); } app.UseCors(cfg => { cfg.AllowAnyHeader().AllowAnyMethod(); }); app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); endpoints.MapRazorPages(); }); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); //configuratie openAPI documentatie app.UseSwagger(); //enable swagger app.UseSwaggerUI(c => { c.RoutePrefix = "swagger"; //path naar de UI pagina: /swagger/index.html c.SwaggerEndpoint("/swagger/v1.0/swagger.json", "Security_API v1.0"); }); }
public QuestionRepo(JAQ_BackendDevDbContext context) { this._context = context; }
public AnswerRepo(JAQ_BackendDevDbContext context) { this._context = context; }
public ScoresRepo(JAQ_BackendDevDbContext context) { this._context = context; }