Add files locally

This commit is contained in:
2vb 2024-05-28 23:57:26 -07:00
parent 72b20f9c49
commit 75cf6c3339
9 changed files with 34757 additions and 9 deletions

View File

@ -31,13 +31,13 @@ UEPlatform="FNGame"
+FrontEndPlaylistData=(PlaylistName=Playlist_ShowdownAlt_Solo, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=False, bVisibleWhenDisabled=True, bDisplayAsNew=False, CategoryIndex=1, bDisplayAsLimitedTime=False, DisplayPriority=0))
+FrontEndPlaylistData=(PlaylistName=Playlist_ShowdownAlt_Duos, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=False, bVisibleWhenDisabled=True, bDisplayAsNew=False, CategoryIndex=1, bDisplayAsLimitedTime=False, DisplayPriority=1))
[AssetHotfix]
+DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;Spread;0
+DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;StandingStillSpreadMultiplier;0.0
+DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;AthenaCrouchingSpreadMultiplier;0.0
+DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;AthenaJumpingFallingSpreadMultiplier;0.0
+DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;AthenaSprintingSpreadMultiplier;0.0
+DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;BulletsPerCartridge;5
; [AssetHotfix]
; +DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;Spread;0
; +DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;StandingStillSpreadMultiplier;0.0
; +DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;AthenaCrouchingSpreadMultiplier;0.0
; +DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;AthenaJumpingFallingSpreadMultiplier;0.0
; +DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;AthenaSprintingSpreadMultiplier;0.0
; +DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;BulletsPerCartridge;5
; +CurveTable=/Game/Athena/Balance/DataTables/AthenaGameData;RowUpdate;Default.ShockwaveGrenade.LaunchVelocity;0;10000
; +CurveTable=/Game/Athena/Balance/DataTables/AthenaGameData;RowUpdate;Default.GrapplingHoot.Speed;0;10000
; +CurveTable=/Game/Athena/Balance/DataTables/AthenaGameData;RowUpdate;Default.PistolFlintlock.KnockMagSelf;0;8000

3424
config/assets.snow.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,510 @@
[
{
"Type": "DataTable",
"Name": "Athena_Season8_BP",
"Class": "UScriptClass'DataTable'",
"Properties": {
"RowStruct": {
"ObjectName": "ScriptStruct'AthenaSeasonalXPCurveEntry'",
"ObjectPath": "/Script/FortniteGame"
}
},
"Rows": {
"1": {
"Level": 1,
"XpToNextLevel": 10,
"XpTotal": 10
},
"2": {
"Level": 2,
"XpToNextLevel": 10,
"XpTotal": 20
},
"3": {
"Level": 3,
"XpToNextLevel": 10,
"XpTotal": 30
},
"4": {
"Level": 4,
"XpToNextLevel": 10,
"XpTotal": 40
},
"5": {
"Level": 5,
"XpToNextLevel": 10,
"XpTotal": 50
},
"6": {
"Level": 6,
"XpToNextLevel": 10,
"XpTotal": 60
},
"7": {
"Level": 7,
"XpToNextLevel": 10,
"XpTotal": 70
},
"8": {
"Level": 8,
"XpToNextLevel": 10,
"XpTotal": 80
},
"9": {
"Level": 9,
"XpToNextLevel": 10,
"XpTotal": 90
},
"10": {
"Level": 10,
"XpToNextLevel": 10,
"XpTotal": 100
},
"11": {
"Level": 11,
"XpToNextLevel": 10,
"XpTotal": 110
},
"12": {
"Level": 12,
"XpToNextLevel": 10,
"XpTotal": 120
},
"13": {
"Level": 13,
"XpToNextLevel": 10,
"XpTotal": 130
},
"14": {
"Level": 14,
"XpToNextLevel": 10,
"XpTotal": 140
},
"15": {
"Level": 15,
"XpToNextLevel": 10,
"XpTotal": 150
},
"16": {
"Level": 16,
"XpToNextLevel": 10,
"XpTotal": 160
},
"17": {
"Level": 17,
"XpToNextLevel": 10,
"XpTotal": 170
},
"18": {
"Level": 18,
"XpToNextLevel": 10,
"XpTotal": 180
},
"19": {
"Level": 19,
"XpToNextLevel": 10,
"XpTotal": 190
},
"20": {
"Level": 20,
"XpToNextLevel": 10,
"XpTotal": 200
},
"21": {
"Level": 21,
"XpToNextLevel": 10,
"XpTotal": 210
},
"22": {
"Level": 22,
"XpToNextLevel": 10,
"XpTotal": 220
},
"23": {
"Level": 23,
"XpToNextLevel": 10,
"XpTotal": 230
},
"24": {
"Level": 24,
"XpToNextLevel": 10,
"XpTotal": 240
},
"25": {
"Level": 25,
"XpToNextLevel": 10,
"XpTotal": 250
},
"26": {
"Level": 26,
"XpToNextLevel": 10,
"XpTotal": 260
},
"27": {
"Level": 27,
"XpToNextLevel": 10,
"XpTotal": 270
},
"28": {
"Level": 28,
"XpToNextLevel": 10,
"XpTotal": 280
},
"29": {
"Level": 29,
"XpToNextLevel": 10,
"XpTotal": 290
},
"30": {
"Level": 30,
"XpToNextLevel": 10,
"XpTotal": 300
},
"31": {
"Level": 31,
"XpToNextLevel": 10,
"XpTotal": 310
},
"32": {
"Level": 32,
"XpToNextLevel": 10,
"XpTotal": 320
},
"33": {
"Level": 33,
"XpToNextLevel": 10,
"XpTotal": 330
},
"34": {
"Level": 34,
"XpToNextLevel": 10,
"XpTotal": 340
},
"35": {
"Level": 35,
"XpToNextLevel": 10,
"XpTotal": 350
},
"36": {
"Level": 36,
"XpToNextLevel": 10,
"XpTotal": 360
},
"37": {
"Level": 37,
"XpToNextLevel": 10,
"XpTotal": 370
},
"38": {
"Level": 38,
"XpToNextLevel": 10,
"XpTotal": 380
},
"39": {
"Level": 39,
"XpToNextLevel": 10,
"XpTotal": 390
},
"40": {
"Level": 40,
"XpToNextLevel": 10,
"XpTotal": 400
},
"41": {
"Level": 41,
"XpToNextLevel": 10,
"XpTotal": 410
},
"42": {
"Level": 42,
"XpToNextLevel": 10,
"XpTotal": 420
},
"43": {
"Level": 43,
"XpToNextLevel": 10,
"XpTotal": 430
},
"44": {
"Level": 44,
"XpToNextLevel": 10,
"XpTotal": 440
},
"45": {
"Level": 45,
"XpToNextLevel": 10,
"XpTotal": 450
},
"46": {
"Level": 46,
"XpToNextLevel": 10,
"XpTotal": 460
},
"47": {
"Level": 47,
"XpToNextLevel": 10,
"XpTotal": 470
},
"48": {
"Level": 48,
"XpToNextLevel": 10,
"XpTotal": 480
},
"49": {
"Level": 49,
"XpToNextLevel": 10,
"XpTotal": 490
},
"50": {
"Level": 50,
"XpToNextLevel": 10,
"XpTotal": 500
},
"51": {
"Level": 51,
"XpToNextLevel": 10,
"XpTotal": 510
},
"52": {
"Level": 52,
"XpToNextLevel": 10,
"XpTotal": 520
},
"53": {
"Level": 53,
"XpToNextLevel": 10,
"XpTotal": 530
},
"54": {
"Level": 54,
"XpToNextLevel": 10,
"XpTotal": 540
},
"55": {
"Level": 55,
"XpToNextLevel": 10,
"XpTotal": 550
},
"56": {
"Level": 56,
"XpToNextLevel": 10,
"XpTotal": 560
},
"57": {
"Level": 57,
"XpToNextLevel": 10,
"XpTotal": 570
},
"58": {
"Level": 58,
"XpToNextLevel": 10,
"XpTotal": 580
},
"59": {
"Level": 59,
"XpToNextLevel": 10,
"XpTotal": 590
},
"60": {
"Level": 60,
"XpToNextLevel": 10,
"XpTotal": 600
},
"61": {
"Level": 61,
"XpToNextLevel": 10,
"XpTotal": 610
},
"62": {
"Level": 62,
"XpToNextLevel": 10,
"XpTotal": 620
},
"63": {
"Level": 63,
"XpToNextLevel": 10,
"XpTotal": 630
},
"64": {
"Level": 64,
"XpToNextLevel": 10,
"XpTotal": 640
},
"65": {
"Level": 65,
"XpToNextLevel": 10,
"XpTotal": 650
},
"66": {
"Level": 66,
"XpToNextLevel": 10,
"XpTotal": 660
},
"67": {
"Level": 67,
"XpToNextLevel": 10,
"XpTotal": 670
},
"68": {
"Level": 68,
"XpToNextLevel": 10,
"XpTotal": 680
},
"69": {
"Level": 69,
"XpToNextLevel": 10,
"XpTotal": 690
},
"70": {
"Level": 70,
"XpToNextLevel": 10,
"XpTotal": 700
},
"71": {
"Level": 71,
"XpToNextLevel": 10,
"XpTotal": 710
},
"72": {
"Level": 72,
"XpToNextLevel": 10,
"XpTotal": 720
},
"73": {
"Level": 73,
"XpToNextLevel": 10,
"XpTotal": 730
},
"74": {
"Level": 74,
"XpToNextLevel": 10,
"XpTotal": 740
},
"75": {
"Level": 75,
"XpToNextLevel": 10,
"XpTotal": 750
},
"76": {
"Level": 76,
"XpToNextLevel": 10,
"XpTotal": 760
},
"77": {
"Level": 77,
"XpToNextLevel": 10,
"XpTotal": 770
},
"78": {
"Level": 78,
"XpToNextLevel": 10,
"XpTotal": 780
},
"79": {
"Level": 79,
"XpToNextLevel": 10,
"XpTotal": 790
},
"80": {
"Level": 80,
"XpToNextLevel": 10,
"XpTotal": 800
},
"81": {
"Level": 81,
"XpToNextLevel": 10,
"XpTotal": 810
},
"82": {
"Level": 82,
"XpToNextLevel": 10,
"XpTotal": 820
},
"83": {
"Level": 83,
"XpToNextLevel": 10,
"XpTotal": 830
},
"84": {
"Level": 84,
"XpToNextLevel": 10,
"XpTotal": 840
},
"85": {
"Level": 85,
"XpToNextLevel": 10,
"XpTotal": 850
},
"86": {
"Level": 86,
"XpToNextLevel": 10,
"XpTotal": 860
},
"87": {
"Level": 87,
"XpToNextLevel": 10,
"XpTotal": 870
},
"88": {
"Level": 88,
"XpToNextLevel": 10,
"XpTotal": 880
},
"89": {
"Level": 89,
"XpToNextLevel": 10,
"XpTotal": 890
},
"90": {
"Level": 90,
"XpToNextLevel": 10,
"XpTotal": 900
},
"91": {
"Level": 91,
"XpToNextLevel": 10,
"XpTotal": 910
},
"92": {
"Level": 92,
"XpToNextLevel": 10,
"XpTotal": 920
},
"93": {
"Level": 93,
"XpToNextLevel": 10,
"XpTotal": 930
},
"94": {
"Level": 94,
"XpToNextLevel": 10,
"XpTotal": 940
},
"95": {
"Level": 95,
"XpToNextLevel": 10,
"XpTotal": 950
},
"96": {
"Level": 96,
"XpToNextLevel": 10,
"XpTotal": 960
},
"97": {
"Level": 97,
"XpToNextLevel": 10,
"XpTotal": 970
},
"98": {
"Level": 98,
"XpToNextLevel": 10,
"XpTotal": 980
},
"99": {
"Level": 99,
"XpToNextLevel": 10,
"XpTotal": 990
}
}
}
]

View File

@ -0,0 +1,510 @@
[
{
"Type": "DataTable",
"Name": "Athena_Season8_XP",
"Class": "UScriptClass'DataTable'",
"Properties": {
"RowStruct": {
"ObjectName": "ScriptStruct'AthenaSeasonalXPCurveEntry'",
"ObjectPath": "/Script/FortniteGame"
}
},
"Rows": {
"1": {
"Level": 1,
"XpToNextLevel": 100,
"XpTotal": 0
},
"2": {
"Level": 2,
"XpToNextLevel": 200,
"XpTotal": 100
},
"3": {
"Level": 3,
"XpToNextLevel": 300,
"XpTotal": 300
},
"4": {
"Level": 4,
"XpToNextLevel": 400,
"XpTotal": 600
},
"5": {
"Level": 5,
"XpToNextLevel": 500,
"XpTotal": 1000
},
"6": {
"Level": 6,
"XpToNextLevel": 650,
"XpTotal": 1500
},
"7": {
"Level": 7,
"XpToNextLevel": 800,
"XpTotal": 2150
},
"8": {
"Level": 8,
"XpToNextLevel": 950,
"XpTotal": 2950
},
"9": {
"Level": 9,
"XpToNextLevel": 1100,
"XpTotal": 3900
},
"10": {
"Level": 10,
"XpToNextLevel": 1250,
"XpTotal": 5000
},
"11": {
"Level": 11,
"XpToNextLevel": 1400,
"XpTotal": 6250
},
"12": {
"Level": 12,
"XpToNextLevel": 1550,
"XpTotal": 7650
},
"13": {
"Level": 13,
"XpToNextLevel": 1700,
"XpTotal": 9200
},
"14": {
"Level": 14,
"XpToNextLevel": 1850,
"XpTotal": 10900
},
"15": {
"Level": 15,
"XpToNextLevel": 2000,
"XpTotal": 12750
},
"16": {
"Level": 16,
"XpToNextLevel": 2150,
"XpTotal": 14750
},
"17": {
"Level": 17,
"XpToNextLevel": 2300,
"XpTotal": 16900
},
"18": {
"Level": 18,
"XpToNextLevel": 2450,
"XpTotal": 19200
},
"19": {
"Level": 19,
"XpToNextLevel": 2600,
"XpTotal": 21650
},
"20": {
"Level": 20,
"XpToNextLevel": 2750,
"XpTotal": 24250
},
"21": {
"Level": 21,
"XpToNextLevel": 2900,
"XpTotal": 27000
},
"22": {
"Level": 22,
"XpToNextLevel": 3050,
"XpTotal": 29900
},
"23": {
"Level": 23,
"XpToNextLevel": 3200,
"XpTotal": 32950
},
"24": {
"Level": 24,
"XpToNextLevel": 3350,
"XpTotal": 36150
},
"25": {
"Level": 25,
"XpToNextLevel": 3500,
"XpTotal": 39500
},
"26": {
"Level": 26,
"XpToNextLevel": 3650,
"XpTotal": 43000
},
"27": {
"Level": 27,
"XpToNextLevel": 3800,
"XpTotal": 46650
},
"28": {
"Level": 28,
"XpToNextLevel": 3950,
"XpTotal": 50450
},
"29": {
"Level": 29,
"XpToNextLevel": 4100,
"XpTotal": 54400
},
"30": {
"Level": 30,
"XpToNextLevel": 4250,
"XpTotal": 58500
},
"31": {
"Level": 31,
"XpToNextLevel": 4400,
"XpTotal": 62750
},
"32": {
"Level": 32,
"XpToNextLevel": 4550,
"XpTotal": 67150
},
"33": {
"Level": 33,
"XpToNextLevel": 4700,
"XpTotal": 71700
},
"34": {
"Level": 34,
"XpToNextLevel": 4850,
"XpTotal": 76400
},
"35": {
"Level": 35,
"XpToNextLevel": 5000,
"XpTotal": 81250
},
"36": {
"Level": 36,
"XpToNextLevel": 5150,
"XpTotal": 86250
},
"37": {
"Level": 37,
"XpToNextLevel": 5300,
"XpTotal": 91400
},
"38": {
"Level": 38,
"XpToNextLevel": 5450,
"XpTotal": 96700
},
"39": {
"Level": 39,
"XpToNextLevel": 5600,
"XpTotal": 102150
},
"40": {
"Level": 40,
"XpToNextLevel": 5800,
"XpTotal": 107750
},
"41": {
"Level": 41,
"XpToNextLevel": 6000,
"XpTotal": 113550
},
"42": {
"Level": 42,
"XpToNextLevel": 6200,
"XpTotal": 119550
},
"43": {
"Level": 43,
"XpToNextLevel": 6400,
"XpTotal": 125750
},
"44": {
"Level": 44,
"XpToNextLevel": 6600,
"XpTotal": 132150
},
"45": {
"Level": 45,
"XpToNextLevel": 6800,
"XpTotal": 138750
},
"46": {
"Level": 46,
"XpToNextLevel": 7000,
"XpTotal": 145550
},
"47": {
"Level": 47,
"XpToNextLevel": 7200,
"XpTotal": 152550
},
"48": {
"Level": 48,
"XpToNextLevel": 7400,
"XpTotal": 159750
},
"49": {
"Level": 49,
"XpToNextLevel": 7600,
"XpTotal": 167150
},
"50": {
"Level": 50,
"XpToNextLevel": 7800,
"XpTotal": 174750
},
"51": {
"Level": 51,
"XpToNextLevel": 8100,
"XpTotal": 182550
},
"52": {
"Level": 52,
"XpToNextLevel": 8400,
"XpTotal": 190650
},
"53": {
"Level": 53,
"XpToNextLevel": 8700,
"XpTotal": 199050
},
"54": {
"Level": 54,
"XpToNextLevel": 9000,
"XpTotal": 207750
},
"55": {
"Level": 55,
"XpToNextLevel": 9300,
"XpTotal": 216750
},
"56": {
"Level": 56,
"XpToNextLevel": 9600,
"XpTotal": 226050
},
"57": {
"Level": 57,
"XpToNextLevel": 9900,
"XpTotal": 235650
},
"58": {
"Level": 58,
"XpToNextLevel": 10200,
"XpTotal": 245550
},
"59": {
"Level": 59,
"XpToNextLevel": 10500,
"XpTotal": 255750
},
"60": {
"Level": 60,
"XpToNextLevel": 10800,
"XpTotal": 266250
},
"61": {
"Level": 61,
"XpToNextLevel": 11200,
"XpTotal": 277050
},
"62": {
"Level": 62,
"XpToNextLevel": 11600,
"XpTotal": 288250
},
"63": {
"Level": 63,
"XpToNextLevel": 12000,
"XpTotal": 299850
},
"64": {
"Level": 64,
"XpToNextLevel": 12400,
"XpTotal": 311850
},
"65": {
"Level": 65,
"XpToNextLevel": 12800,
"XpTotal": 324250
},
"66": {
"Level": 66,
"XpToNextLevel": 13200,
"XpTotal": 337050
},
"67": {
"Level": 67,
"XpToNextLevel": 13600,
"XpTotal": 350250
},
"68": {
"Level": 68,
"XpToNextLevel": 14000,
"XpTotal": 363850
},
"69": {
"Level": 69,
"XpToNextLevel": 14400,
"XpTotal": 377850
},
"70": {
"Level": 70,
"XpToNextLevel": 14800,
"XpTotal": 392250
},
"71": {
"Level": 71,
"XpToNextLevel": 15300,
"XpTotal": 407050
},
"72": {
"Level": 72,
"XpToNextLevel": 15800,
"XpTotal": 422350
},
"73": {
"Level": 73,
"XpToNextLevel": 16300,
"XpTotal": 438150
},
"74": {
"Level": 74,
"XpToNextLevel": 16800,
"XpTotal": 454450
},
"75": {
"Level": 75,
"XpToNextLevel": 17300,
"XpTotal": 471250
},
"76": {
"Level": 76,
"XpToNextLevel": 17800,
"XpTotal": 488550
},
"77": {
"Level": 77,
"XpToNextLevel": 18300,
"XpTotal": 506350
},
"78": {
"Level": 78,
"XpToNextLevel": 18800,
"XpTotal": 524650
},
"79": {
"Level": 79,
"XpToNextLevel": 19300,
"XpTotal": 543450
},
"80": {
"Level": 80,
"XpToNextLevel": 19800,
"XpTotal": 562750
},
"81": {
"Level": 81,
"XpToNextLevel": 20800,
"XpTotal": 582550
},
"82": {
"Level": 82,
"XpToNextLevel": 21800,
"XpTotal": 603350
},
"83": {
"Level": 83,
"XpToNextLevel": 22800,
"XpTotal": 625150
},
"84": {
"Level": 84,
"XpToNextLevel": 23800,
"XpTotal": 647950
},
"85": {
"Level": 85,
"XpToNextLevel": 24800,
"XpTotal": 671750
},
"86": {
"Level": 86,
"XpToNextLevel": 25800,
"XpTotal": 696550
},
"87": {
"Level": 87,
"XpToNextLevel": 26800,
"XpTotal": 722350
},
"88": {
"Level": 88,
"XpToNextLevel": 27800,
"XpTotal": 749150
},
"89": {
"Level": 89,
"XpToNextLevel": 28800,
"XpTotal": 776950
},
"90": {
"Level": 90,
"XpToNextLevel": 30800,
"XpTotal": 805750
},
"91": {
"Level": 91,
"XpToNextLevel": 32800,
"XpTotal": 836550
},
"92": {
"Level": 92,
"XpToNextLevel": 34800,
"XpTotal": 869350
},
"93": {
"Level": 93,
"XpToNextLevel": 36800,
"XpTotal": 904150
},
"94": {
"Level": 94,
"XpToNextLevel": 38800,
"XpTotal": 940950
},
"95": {
"Level": 95,
"XpToNextLevel": 40800,
"XpTotal": 979750
},
"96": {
"Level": 96,
"XpToNextLevel": 42800,
"XpTotal": 1020550
},
"97": {
"Level": 97,
"XpToNextLevel": 45800,
"XpTotal": 1063350
},
"98": {
"Level": 98,
"XpToNextLevel": 49800,
"XpTotal": 1109150
},
"99": {
"Level": 99,
"XpToNextLevel": 54800,
"XpTotal": 1158950
}
}
}
]

6530
config/season.snow.json Normal file

File diff suppressed because it is too large Load Diff

23755
config/variants.snow.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,8 @@ import (
"crypto/sha1"
"crypto/sha256"
"encoding/hex"
"os"
"path/filepath"
"time"
"github.com/ectrc/snow/aid"
@ -73,6 +75,19 @@ func GetCloudStorageConfig(c *fiber.Ctx) error {
})
}
func GetAssets(c *fiber.Ctx) error {
fileName := c.Params("fileName")
path := filepath.Join("./data/files", fileName)
_, err := os.Stat(path)
if err != nil {
if os.IsNotExist(err) {
return c.Status(404).JSON(aid.ErrorBadRequest("File not found"))
}
return c.Status(fiber.StatusInternalServerError).JSON(aid.ErrorInternalServer)
}
return c.SendFile(path)
}
func GetCloudStorageFile(c *fiber.Ctx) error {
c.Set("Content-Type", "application/octet-stream")
switch c.Params("fileName") {

View File

@ -20,7 +20,7 @@ import (
var configFile []byte
func init() {
configFile, _ = os.ReadFile("config/config.ini");
configFile, _ = os.ReadFile("config/config.ini")
aid.LoadConfig(configFile)
var device storage.Storage
switch aid.Config.Database.Type {
@ -187,6 +187,7 @@ func main() {
snow := r.Group("/snow")
snow.Post("/log", handlers.PostSnowLog)
snow.Get("/httpassets/:fileName", handlers.GetAssets)
discord := snow.Group("/discord")
discord.Get("/", handlers.GetDiscordOAuthURL)

View File

@ -6,6 +6,8 @@ import (
"io"
"net/http"
"strings"
"github.com/ectrc/snow/aid"
)
var (
@ -29,7 +31,8 @@ func Asset(file string) (*[]byte) {
func HttpAsset[T interface{}](file string) (*T) {
client := http.Client{}
resp, err := client.Get("https://raw.githubusercontent.com/ectrc/ectrc/main/" + file)
resp, err := client.Get(aid.Config.API.Host + "/snow/httpassets/" + file)
// resp, err := client.Get("https://raw.githubusercontent.com/ectrc/ectrc/main/" + file)
if err != nil {
return nil
}