2023-11-03 23:48:50 +00:00
package handlers
import (
"github.com/ectrc/snow/aid"
"github.com/gofiber/fiber/v2"
)
func AnyNoContent ( c * fiber . Ctx ) error {
return c . SendStatus ( fiber . StatusNoContent )
}
2023-11-05 22:08:53 +00:00
func PostGamePlatform ( c * fiber . Ctx ) error {
2023-11-03 23:48:50 +00:00
return c . Status ( fiber . StatusOK ) . SendString ( "true" )
}
2023-11-05 22:08:53 +00:00
func GetGameEnabledFeatures ( c * fiber . Ctx ) error {
2023-11-03 23:48:50 +00:00
return c . Status ( fiber . StatusOK ) . JSON ( [ ] string { } )
}
2023-11-05 22:08:53 +00:00
func PostGameAccess ( c * fiber . Ctx ) error {
2023-11-03 23:48:50 +00:00
return c . Status ( fiber . StatusOK ) . SendString ( "true" )
}
2023-11-05 22:08:53 +00:00
func GetFortniteReceipts ( c * fiber . Ctx ) error {
2023-11-03 23:48:50 +00:00
return c . Status ( fiber . StatusOK ) . JSON ( [ ] string { } )
}
2023-11-05 22:08:53 +00:00
func GetMatchmakingSession ( c * fiber . Ctx ) error {
2023-11-03 23:48:50 +00:00
return c . Status ( fiber . StatusOK ) . JSON ( [ ] string { } )
}
2023-11-05 22:08:53 +00:00
func GetFortniteVersion ( c * fiber . Ctx ) error {
2023-11-03 23:48:50 +00:00
return c . Status ( fiber . StatusOK ) . JSON ( aid . JSON {
"type" : "NO_UPDATE" ,
} )
2023-11-05 01:58:00 +00:00
}
func GetContentPages ( c * fiber . Ctx ) error {
2023-11-05 22:08:53 +00:00
// seasonString := strconv.Itoa(aid.Config.Fortnite.Season)
2023-11-05 01:58:00 +00:00
return c . Status ( fiber . StatusOK ) . JSON ( aid . JSON {
"battlepassaboutmessages" : aid . JSON {
"news" : aid . JSON {
"messages" : [ ] aid . JSON { } ,
} ,
"lastModified" : "0000-00-00T00:00:00.000Z" ,
} ,
"subgameselectdata" : aid . JSON {
"saveTheWorldUnowned" : aid . JSON {
"message" : aid . JSON {
"title" : "Co-op PvE" ,
"body" : "Cooperative PvE storm-fighting adventure!" ,
"spotlight" : false ,
"hidden" : true ,
"messagetype" : "normal" ,
} ,
} ,
"battleRoyale" : aid . JSON {
"message" : aid . JSON {
"title" : "100 Player PvP" ,
"body" : "100 Player PvP Battle Royale.\n\nPvE progress does not affect Battle Royale." ,
"spotlight" : false ,
"hidden" : true ,
"messagetype" : "normal" ,
} ,
} ,
"creative" : aid . JSON {
"message" : aid . JSON {
"title" : "New Featured Islands!" ,
"body" : "Your Island. Your Friends. Your Rules.\n\nDiscover new ways to play Fortnite, play community made games with friends and build your dream island." ,
"spotlight" : false ,
"hidden" : true ,
"messagetype" : "normal" ,
} ,
} ,
"lastModified" : "0000-00-00T00:00:00.000Z" ,
} ,
2023-11-05 22:08:53 +00:00
"dynamicbackgrounds" : aid . JSON {
"backgrounds" : aid . JSON { "backgrounds" : [ ] aid . JSON {
// {
// "key": "lobby",
// "stage": "season"+seasonString,
// },
// {
// "key": "vault",
// "stage": "season"+seasonString,
// },
} } ,
"lastModified" : "0000-00-00T00:00:00.000Z" ,
} ,
2023-11-05 01:58:00 +00:00
"lastModified" : "0000-00-00T00:00:00.000Z" ,
} )
2023-11-03 23:48:50 +00:00
}