Addet aspire support pos.web and also addet the pictures for layout

This commit is contained in:
Alex Pedersen
2026-07-30 13:22:33 +02:00
parent 9497afe262
commit 2e537337f5
19 changed files with 34 additions and 5 deletions

View File

@@ -20,4 +20,8 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.1.7" />
</ItemGroup>
</Project>
<ItemGroup>
<ProjectReference Include="..\Pos.ServiceDefaults\Pos.ServiceDefaults.csproj" />
</ItemGroup>
</Project>

View File

@@ -4,6 +4,8 @@ using Microsoft.Extensions.DependencyInjection;
var builder = WebApplication.CreateBuilder(args);
builder.AddServiceDefaults();
// Services
builder.Services.AddControllers();
builder.Services.AddEndpointsApiExplorer();
@@ -13,6 +15,8 @@ builder.Services.AddScoped<EpsonPrintService>();
var app = builder.Build();
app.MapDefaultEndpoints();
// Swagger (altid aktiv vi er på en Pi, ikke i produktion)
app.UseSwagger();
app.UseSwaggerUI();

View File

@@ -19,7 +19,7 @@
},
"EpsonPrinter": {
"commandName": "Project",
"dotnetRunMessages": "true",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:5001;http://localhost:5000",

View File

@@ -10,3 +10,9 @@ Buket..............1 á 50,50 DKK : 50,50 DKK
Total: 50,50 DKK
Moms udgør 25% : 12,63 DKK
Tak for handlen
Dato: 30-07-2026
-----------------------------------
string : .00
-----------------------------------
Total salg: .00
Antal kunder: 0