(w http.ResponseWriter, _ *http.Request)
| 696 | } |
| 697 | |
| 698 | func (s *service) getJSMetadata(w http.ResponseWriter, _ *http.Request) { |
| 699 | meta, _ := json.Marshal(map[string]interface{}{ |
| 700 | "deviceID": s.id.String(), |
| 701 | "deviceIDShort": s.id.Short().String(), |
| 702 | "authenticated": true, |
| 703 | }) |
| 704 | w.Header().Set("Content-Type", "application/javascript") |
| 705 | fmt.Fprintf(w, "var metadata = %s;\n", meta) |
| 706 | } |
| 707 | |
| 708 | func (*service) getSystemVersion(w http.ResponseWriter, _ *http.Request) { |
| 709 | sendJSON(w, map[string]interface{}{ |