Changeset 057037b for backend/Program.cs


Ignore:
Timestamp:
04/11/22 15:29:19 (2 years ago)
Author:
Danilo <danilo.najkov@…>
Branches:
master
Children:
7a983b0
Parents:
b66b3ac
Message:

backend full

File:
1 edited

Legend:

Unmodified
Added
Removed
  • backend/Program.cs

    rb66b3ac r057037b  
    44using Microsoft.EntityFrameworkCore;
    55using Microsoft.OpenApi.Models;
    6 using Swashbuckle.AspNetCore.Swagger;
    76using WebApi.Helpers;
    87
     
    1110// Add services to the container.
    1211builder.Services.Configure<AppSettings>(builder.Configuration.GetSection("AppSettings"));
    13 builder.Services.AddControllers();
     12builder.Services.AddControllers().AddNewtonsoftJson();
    1413// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
    1514builder.Services.AddEndpointsApiExplorer();
     
    4544});
    4645builder.Services.AddScoped<IUserService, UserService>();
     46builder.Services.AddScoped<IRestaurantService, RestaurantService>();
     47builder.Services.AddScoped<IReservationService, ReservationService>();
     48builder.Services.AddScoped<ISmsService, SmsService>();
    4749
    4850builder.Services.AddDbContext<DataContext>(p => p.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection")));
Note: See TracChangeset for help on using the changeset viewer.