This commit is contained in:
@@ -42,7 +42,7 @@ namespace rockfishCore
|
||||
// This method gets called by the runtime. Use this method to add services to the container.
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddControllers();
|
||||
services.AddControllers().AddNewtonsoftJson();
|
||||
services.AddDbContext<rockfishContext>(options =>
|
||||
{
|
||||
options.UseSqlite(Configuration.GetConnectionString("rfdb")).EnableSensitiveDataLogging(false);
|
||||
@@ -111,9 +111,8 @@ namespace rockfishCore
|
||||
app.UseRouting();
|
||||
|
||||
app.UseAuthorization();
|
||||
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
{
|
||||
endpoints.MapControllers();
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user