few fixes

This commit is contained in:
Lapis
2026-06-07 19:11:25 -04:00
parent 26d85d0748
commit e364428376
19 changed files with 26 additions and 90 deletions
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5000"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5005"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5002"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5007"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5003"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5009"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5010"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5011"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5008"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5004"
}
}
-6
View File
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5001"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5006"
}
}
@@ -1,6 +0,0 @@
{
"Hosting": {
"Url": "http://*:5012"
}
}
+16
View File
@@ -22,4 +22,20 @@
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.Accounts.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.API.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.Auth.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.CDN.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.Chat.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.Clubs.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.Commerce.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.Econ.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.Image.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.Match.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.Notify.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.NS.json" />
<_ContentIncludedByDefault Remove="AppConfigs\appsettings.PlayerSettings.json" />
</ItemGroup>
</Project> </Project>
+3 -3
View File
@@ -6,7 +6,7 @@
"BugReporting": "https://cannednet.lapis.codes", "BugReporting": "https://cannednet.lapis.codes",
"Cards": "https://cannednet.lapis.codes", "Cards": "https://cannednet.lapis.codes",
"CDN": "https://cannednet.lapis.codes", "CDN": "https://cannednet.lapis.codes",
"Chat": "https://cannednet.lapis.codes", "Chat": "https://cannednet.lapis.codes/chat",
"Clubs": "https://cannednet.lapis.codes", "Clubs": "https://cannednet.lapis.codes",
"CMS": "https://cannednet.lapis.codes", "CMS": "https://cannednet.lapis.codes",
"Commerce": "https://cannednet.lapis.codes", "Commerce": "https://cannednet.lapis.codes",
@@ -16,7 +16,7 @@
"Econ": "https://cannednet.lapis.codes", "Econ": "https://cannednet.lapis.codes",
"GameLogs": "https://cannednet.lapis.codes", "GameLogs": "https://cannednet.lapis.codes",
"Geo": "https://cannednet.lapis.codes", "Geo": "https://cannednet.lapis.codes",
"Images": "https://cannednet.lapis.codes", "Images": "https://cannednet.lapis.codes/img",
"Leaderboard": "https://cannednet.lapis.codes", "Leaderboard": "https://cannednet.lapis.codes",
"Link": "https://cannednet.lapis.codes", "Link": "https://cannednet.lapis.codes",
"Lists": "https://cannednet.lapis.codes", "Lists": "https://cannednet.lapis.codes",
@@ -24,7 +24,7 @@
"Moderation": "https://cannednet.lapis.codes", "Moderation": "https://cannednet.lapis.codes",
"Notifications": "https://cannednet.lapis.codes", "Notifications": "https://cannednet.lapis.codes",
"PlatformNotifications": "https://cannednet.lapis.codes", "PlatformNotifications": "https://cannednet.lapis.codes",
"PlayerSettings": "https://cannednet.lapis.codes", "PlayerSettings": "https://cannednet.lapis.codes/playersettings",
"RoomComments": "https://cannednet.lapis.codes", "RoomComments": "https://cannednet.lapis.codes",
"RoomieIntegrations": "https://cannednet.lapis.codes", "RoomieIntegrations": "https://cannednet.lapis.codes",
"Rooms": "https://cannednet.lapis.codes", "Rooms": "https://cannednet.lapis.codes",
@@ -9,21 +9,21 @@ namespace CannedNet.Services.Controllers;
[ApiController, Route("econ")] [ApiController, Route("econ")]
public class EconController : ControllerBase public class EconController : ControllerBase
{ {
[HttpGet("api/avatar/v1/defaultunlocked")] [HttpGet("/api/avatar/v1/defaultunlocked")]
public async Task<IResult> DefaultUnlocked() public async Task<IResult> DefaultUnlocked()
{ {
var json = System.IO.File.ReadAllText("JSON/defaultAvatarItems.json"); var json = System.IO.File.ReadAllText("JSON/defaultAvatarItems.json");
return Results.Content(json, "application/json"); return Results.Content(json, "application/json");
} }
[HttpGet("api/avatar/v1/defaultbaseavataritems")] [HttpGet("/api/avatar/v1/defaultbaseavataritems")]
public async Task<IResult> DefaultBaseAvatarItems() public async Task<IResult> DefaultBaseAvatarItems()
{ {
var json = System.IO.File.ReadAllText("JSON/defaultAvatarItems.json"); var json = System.IO.File.ReadAllText("JSON/defaultAvatarItems.json");
return Results.Content(json, "application/json"); return Results.Content(json, "application/json");
} }
[HttpGet("api/avatar/v4/items")] [HttpGet("/api/avatar/v4/items")]
[Authorize] [Authorize]
public async Task<IResult> GetAvatarItemsV4(AppDbContext db) public async Task<IResult> GetAvatarItemsV4(AppDbContext db)
{ {
@@ -8,7 +8,7 @@ namespace CannedNet.Services.Controllers;
[ApiController, Route("playersettings")] [ApiController, Route("playersettings")]
public class PlayerSettingsController : ControllerBase public class PlayerSettingsController : ControllerBase
{ {
[HttpGet("/playersettings")] [HttpGet("playersettings")]
[Authorize] [Authorize]
public async Task<IResult> GetPlayerSettings(AppDbContext db) public async Task<IResult> GetPlayerSettings(AppDbContext db)
{ {
@@ -63,7 +63,7 @@ public class PlayerSettingsController : ControllerBase
return Results.Json(settings); return Results.Json(settings);
} }
[HttpPut("/playersettings")] [HttpPut("playersettings")]
[Authorize] [Authorize]
public async Task<IResult> PutPlayerSettings(AppDbContext db) public async Task<IResult> PutPlayerSettings(AppDbContext db)
{ {
+1 -2
View File
@@ -3,8 +3,7 @@
"DefaultConnection": "Host=localhost;Port=5432;Database=cannednet;Username=postgres;Password=postgres" "DefaultConnection": "Host=localhost;Port=5432;Database=cannednet;Username=postgres;Password=postgres"
}, },
"Ports": { "Ports": {
"API": 5000, "API": 5000
"NS": 5001
}, },
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
+1 -2
View File
@@ -9,8 +9,7 @@
"DefaultConnection": "Host=localhost;Port=5432;Database=cannednet;Username=postgres;Password=postgres" "DefaultConnection": "Host=localhost;Port=5432;Database=cannednet;Username=postgres;Password=postgres"
}, },
"Ports": { "Ports": {
"Primary": 5000, "Primary": 5000
"Secondary": 5001
}, },
"AllowedHosts": "*" "AllowedHosts": "*"
} }