aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/api0/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/api0/api.go')
-rw-r--r--pkg/api/api0/api.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/api/api0/api.go b/pkg/api/api0/api.go
index 33207a1..7d1e638 100644
--- a/pkg/api/api0/api.go
+++ b/pkg/api/api0/api.go
@@ -28,6 +28,9 @@ type Handler struct {
// PdataStorage stores player data. It must be non-nil.
PdataStorage PdataStorage
+ // MainMenuPromos gets the main menu promos to return for a request.
+ MainMenuPromos func(*http.Request) MainMenuPromos
+
// NotFound handles requests not handled by this Handler.
NotFound http.Handler
}
@@ -37,6 +40,8 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", "Atlas")
switch r.URL.Path {
+ case "/client/mainmenupromos":
+ h.handleMainMenuPromos(w, r)
case "/accounts/write_persistence":
h.handleAccountsWritePersistence(w, r)
case "/accounts/get_username":