First version to show (raw) email bodies.
Made xwebmail work with new handlers package. Pulls important headers from the database and provides extremely basic folder view on webpage. Reverted layout customizations returning folder view to original wider width. JS App now handles all the rendering, index.html only contains placeholder with background to indicate loading.
This commit is contained in:
@@ -5,9 +5,9 @@ import (
|
||||
"net/http"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"xinu.tv/email/db"
|
||||
"xinu.tv/email/handlers"
|
||||
)
|
||||
|
||||
var addr = flag.String("addr", ":8080", "address:port to listen on")
|
||||
@@ -21,10 +21,6 @@ func main() {
|
||||
glog.Fatal(err)
|
||||
}
|
||||
|
||||
h := &handler{c: c}
|
||||
|
||||
r := mux.NewRouter()
|
||||
r.HandleFunc("/raw/{hash}", h.OriginalHandler)
|
||||
r.HandleFunc("/l/{label}", h.LabelHandler)
|
||||
glog.Fatal(http.ListenAndServe(*addr, r))
|
||||
h := handlers.Handlers(c)
|
||||
glog.Fatal(http.ListenAndServe(*addr, h))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user