Skip to content
This repository has been archived by the owner on Sep 17, 2018. It is now read-only.

Commit

Permalink
app: made root handler delegate to rpc.HandleStream().
Browse files Browse the repository at this point in the history
  • Loading branch information
tav committed Jan 17, 2012
1 parent eade285 commit de8a63a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/togethr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package togethr

import (
"http"
"strings"
"togethr/backend"
"togethr/rpc"
)
Expand All @@ -31,11 +30,7 @@ func handle(w http.ResponseWriter, r *http.Request) {
case "/.test":
render(testChromeBytes, w)
default:
if strings.HasPrefix(path, "/.get/") {
rpc.HandleStream(path[6:], w, r)
} else {
http.NotFound(w, r)
}
rpc.HandleStream(path[2:], w, r)
}
case '_':
switch path {
Expand Down

0 comments on commit de8a63a

Please sign in to comment.