Downgrade to .net6

This commit is contained in:
2025-08-21 15:30:40 +05:00
parent 2462093e69
commit 4e400974aa
3 changed files with 32 additions and 18 deletions

View File

@ -1,5 +1,11 @@
using GetFromLoki.Services; using GetFromLoki.Services;
namespace GetFromLoki;
public class Program
{
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
// Add services to the container. // Add services to the container.
@ -22,3 +28,5 @@ app.UseAuthorization();
app.MapControllers(); app.MapControllers();
app.Run(); app.Run();
}
}

View File

@ -8,7 +8,7 @@
## Требования ## Требования
- .NET 8.0 - .NET 6.0
- Grafana Loki (работающий на http://localhost:3100) - Grafana Loki (работающий на http://localhost:3100)
## Запуск ## Запуск
@ -119,4 +119,4 @@ curl -X POST "http://localhost:5000/api/logs/query" \
## Swagger UI ## Swagger UI
После запуска сервиса документация API доступна по адресу: После запуска сервиса документация API доступна по адресу:
http://localhost:5000/swagger http://localhost:5000/swagger/index.html

6
global.json Normal file
View File

@ -0,0 +1,6 @@
{
"sdk": {
"version": "6.0.0",
"rollForward": "latestMajor"
}
}