diff options
| -rw-r--r-- | main.go | 11 | 
1 files changed, 7 insertions, 4 deletions
@@ -61,14 +61,17 @@ func commentThreadsHandler(w http.ResponseWriter, r *http.Request) {  }  func handler(w http.ResponseWriter, r *http.Request) { -	path := strings.Trim(r.URL.Path, "/") -	if path == "" { -		path = "world" +	id := strings.Trim(r.URL.Path, "/") +	//if path == "" { +	// TODO landing page +	//} +	if id == "watch" { +		id = r.URL.Query().Get("v")  	}  	data := struct {  		Id string  	}{ -		Id: path, +		Id: id,  	}  	err := tmpl.Execute(w, data)  	if err != nil {  | 
