// 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;
 }
Beispiel #4
0
 public GebruikerService(IOptions <AppSettings> appSettings, PollShareContext pollShareContext)
 {
     _appSettings      = appSettings.Value;
     _pollShareContext = pollShareContext;
 }
Beispiel #5
0
 public PollGebruikerController(PollShareContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public PollController(PollShareContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public AntwoordController(PollShareContext context)
 {
     _context = context;
 }
 public StemController(PollShareContext context)
 {
     _context = context;
 }
Beispiel #9
0
 public MeldingController(PollShareContext context)
 {
     _context = context;
 }