mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
Добавил больше сущностей, и дал и описание
This commit is contained in:
1 parent
823e626895
commit
75ef67c053
10 files changed
+57
-21
No files matched your search
+7
-14
@@ -1,24 +1,17 @@
|
||||
//using CartriX.Api.Interfaces;
|
||||
//using CartriX.Api.Services;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Scalar.AspNetCore;
|
||||
using Microsoft.EntityFrameworkCore.Internal;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using CartriX.Api;
|
||||
using CartriX.Api.Controllers.Cartridge;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddControllers().AddNewtonsoftJson(options =>
|
||||
{
|
||||
options.SerializerSettings.ContractResolver = new DefaultContractResolver();
|
||||
});
|
||||
|
||||
//builder.Services.AddScoped<IPrinterService, PrinterService>();
|
||||
//builder.Services.AddScoped<ICartridgeService, CartridgeService>();
|
||||
//builder.Services.AddScoped<ILocationService, LocationService>();
|
||||
//builder.Services.AddScoped<IReportService, ReportService>();
|
||||
//builder.Services.AddScoped<INetworkService, NetworkService>();
|
||||
//builder.Services.AddScoped<IManufacturerService, ManufacturerService>();
|
||||
//builder.Services.AddScoped<IArticleService, ArticleService>();
|
||||
|
||||
//builder.Services.AddSingleton<ISnmpService, SnmpService>();
|
||||
//builder.Services.AddHostedService<BackgroundApiService>();
|
||||
builder.Services.AddScoped<ICartridgeService, CartridgeService>();
|
||||
|
||||
builder.Services.AddCors(options =>
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user