Common isomorphic functionality in one kit.

gopherjshandlers.go 338B

1234567891011121314
  1. package isokit
  2. import (
  3. "net/http"
  4. "os"
  5. )
  6. func GopherjsScriptHandler(w http.ResponseWriter, r *http.Request) {
  7. http.ServeFile(w, r, os.Getenv("ISOGO_APP_ROOT")+"/client/client.js")
  8. }
  9. func GopherjsScriptMapHandler(w http.ResponseWriter, r *http.Request) {
  10. http.ServeFile(w, r, os.Getenv("ISOGO_APP_ROOT")+"/client/client.js.map")
  11. }