Skip to content

Commit

Permalink
client/webserver: download log files from UI button.
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-warrior777 committed Dec 23, 2024
1 parent 0030e49 commit ebf9f49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/webserver/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2040,6 +2040,10 @@ func (s *WebServer) apiTakeAction(w http.ResponseWriter, r *http.Request) {
writeJSON(w, simpleAck())
}

func (s *WebServer) apiExportAppLogs(w http.ResponseWriter, r *http.Request) {
fmt.Printf("apiExportAppLogs")
}

func (s *WebServer) redeemGameCode(w http.ResponseWriter, r *http.Request) {
var form struct {
Code dex.Bytes `json:"code"`
Expand Down
1 change: 1 addition & 0 deletions client/webserver/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ func New(cfg *Config) (*WebServer, error) {
apiAuth.Post("/txhistory", s.apiTxHistory)
apiAuth.Post("/takeaction", s.apiTakeAction)
apiAuth.Post("/redeemgamecode", s.redeemGameCode)
apiAuth.Post("/exportapplogs", s.apiExportAppLogs)

apiAuth.Post("/stakestatus", s.apiStakeStatus)
apiAuth.Post("/setvsp", s.apiSetVSP)
Expand Down

0 comments on commit ebf9f49

Please sign in to comment.