Skip to content

Commit ebf9f49

Browse files
author
dev-warrior777
committed
client/webserver: download log files from UI button.
1 parent 0030e49 commit ebf9f49

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

client/webserver/api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,6 +2040,10 @@ func (s *WebServer) apiTakeAction(w http.ResponseWriter, r *http.Request) {
20402040
writeJSON(w, simpleAck())
20412041
}
20422042

2043+
func (s *WebServer) apiExportAppLogs(w http.ResponseWriter, r *http.Request) {
2044+
fmt.Printf("apiExportAppLogs")
2045+
}
2046+
20432047
func (s *WebServer) redeemGameCode(w http.ResponseWriter, r *http.Request) {
20442048
var form struct {
20452049
Code dex.Bytes `json:"code"`

client/webserver/webserver.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ func New(cfg *Config) (*WebServer, error) {
556556
apiAuth.Post("/txhistory", s.apiTxHistory)
557557
apiAuth.Post("/takeaction", s.apiTakeAction)
558558
apiAuth.Post("/redeemgamecode", s.redeemGameCode)
559+
apiAuth.Post("/exportapplogs", s.apiExportAppLogs)
559560

560561
apiAuth.Post("/stakestatus", s.apiStakeStatus)
561562
apiAuth.Post("/setvsp", s.apiSetVSP)

0 commit comments

Comments
 (0)