package api

import (
	"net/http"
)

// WebuiHandler returns the webui html
func WebuiHandler(w http.ResponseWriter, r *http.Request) {
	template := `
	<!doctype html><html><head><link href="https://storage.googleapis.com/qri-static/bundle.css" rel="stylesheet"></head><head><title>Qri Remote Webapp</title><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="script-src 'self' https://storage.googleapis.com https://qri.io https://qri.cloud"><body><div class="titlebar"></div><div id="root"></div><script src="https://storage.googleapis.com/qri-static/bundle.js"></script></body></head></html>
	`
	w.Write([]byte(template))
	return
}
