Добавил больше сущностей, и дал и описание

This commit is contained in:
Hukuta committed 2026-05-30 01:27:00 +09:00
1 parent 823e626895
commit 75ef67c053
10 files changed
+57 -21

No files matched your search

+7 -14
View File
@@ -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 =>
{