mirror of
https://github.com/CannedNet/CannedNet.git
synced 2026-10-25 15:09:23 -07:00
few fixes
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"Hosting": {
|
||||
"Url": "http://*:5001"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"Hosting": {
|
||||
"Url": "http://*:5006"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"Hosting": {
|
||||
"Url": "http://*:5012"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,20 @@
|
||||
</PackageReference>
|
||||
</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>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"BugReporting": "https://cannednet.lapis.codes",
|
||||
"Cards": "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",
|
||||
"CMS": "https://cannednet.lapis.codes",
|
||||
"Commerce": "https://cannednet.lapis.codes",
|
||||
@@ -16,7 +16,7 @@
|
||||
"Econ": "https://cannednet.lapis.codes",
|
||||
"GameLogs": "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",
|
||||
"Link": "https://cannednet.lapis.codes",
|
||||
"Lists": "https://cannednet.lapis.codes",
|
||||
@@ -24,7 +24,7 @@
|
||||
"Moderation": "https://cannednet.lapis.codes",
|
||||
"Notifications": "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",
|
||||
"RoomieIntegrations": "https://cannednet.lapis.codes",
|
||||
"Rooms": "https://cannednet.lapis.codes",
|
||||
|
||||
@@ -9,21 +9,21 @@ namespace CannedNet.Services.Controllers;
|
||||
[ApiController, Route("econ")]
|
||||
public class EconController : ControllerBase
|
||||
{
|
||||
[HttpGet("api/avatar/v1/defaultunlocked")]
|
||||
[HttpGet("/api/avatar/v1/defaultunlocked")]
|
||||
public async Task<IResult> DefaultUnlocked()
|
||||
{
|
||||
var json = System.IO.File.ReadAllText("JSON/defaultAvatarItems.json");
|
||||
return Results.Content(json, "application/json");
|
||||
}
|
||||
|
||||
[HttpGet("api/avatar/v1/defaultbaseavataritems")]
|
||||
[HttpGet("/api/avatar/v1/defaultbaseavataritems")]
|
||||
public async Task<IResult> DefaultBaseAvatarItems()
|
||||
{
|
||||
var json = System.IO.File.ReadAllText("JSON/defaultAvatarItems.json");
|
||||
return Results.Content(json, "application/json");
|
||||
}
|
||||
|
||||
[HttpGet("api/avatar/v4/items")]
|
||||
[HttpGet("/api/avatar/v4/items")]
|
||||
[Authorize]
|
||||
public async Task<IResult> GetAvatarItemsV4(AppDbContext db)
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CannedNet.Services.Controllers;
|
||||
[ApiController, Route("playersettings")]
|
||||
public class PlayerSettingsController : ControllerBase
|
||||
{
|
||||
[HttpGet("/playersettings")]
|
||||
[HttpGet("playersettings")]
|
||||
[Authorize]
|
||||
public async Task<IResult> GetPlayerSettings(AppDbContext db)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ public class PlayerSettingsController : ControllerBase
|
||||
return Results.Json(settings);
|
||||
}
|
||||
|
||||
[HttpPut("/playersettings")]
|
||||
[HttpPut("playersettings")]
|
||||
[Authorize]
|
||||
public async Task<IResult> PutPlayerSettings(AppDbContext db)
|
||||
{
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
"DefaultConnection": "Host=localhost;Port=5432;Database=cannednet;Username=postgres;Password=postgres"
|
||||
},
|
||||
"Ports": {
|
||||
"API": 5000,
|
||||
"NS": 5001
|
||||
"API": 5000
|
||||
},
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
"DefaultConnection": "Host=localhost;Port=5432;Database=cannednet;Username=postgres;Password=postgres"
|
||||
},
|
||||
"Ports": {
|
||||
"Primary": 5000,
|
||||
"Secondary": 5001
|
||||
"Primary": 5000
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user