mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-12-26 15:56:31 +00:00
referrence the new CSS asset
This commit is contained in:
parent
135b6f4803
commit
6fb572915f
1 changed files with 10 additions and 8 deletions
16
server.go
16
server.go
|
@ -2,13 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/vbatts/go-httplog"
|
|
||||||
"github.com/vbatts/imgsrv/hash"
|
|
||||||
"github.com/vbatts/imgsrv/types"
|
|
||||||
"github.com/vbatts/imgsrv/util"
|
|
||||||
"io"
|
"io"
|
||||||
"labix.org/v2/mgo"
|
|
||||||
"labix.org/v2/mgo/bson"
|
|
||||||
"log"
|
"log"
|
||||||
"mime"
|
"mime"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -16,6 +10,14 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/vbatts/go-httplog"
|
||||||
|
"github.com/vbatts/imgsrv/assets"
|
||||||
|
"github.com/vbatts/imgsrv/hash"
|
||||||
|
"github.com/vbatts/imgsrv/types"
|
||||||
|
"github.com/vbatts/imgsrv/util"
|
||||||
|
"labix.org/v2/mgo"
|
||||||
|
"labix.org/v2/mgo/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
var defaultPageLimit int = 25
|
var defaultPageLimit int = 25
|
||||||
|
@ -719,7 +721,7 @@ func routeAssets(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
switch path {
|
switch path {
|
||||||
case "bootstrap.css":
|
case "bootstrap.css":
|
||||||
fmt.Fprint(w, bootstrapCSS)
|
fmt.Fprintf(w, "%s", assets.BootstrapCss())
|
||||||
w.Header().Set("Content-Type", "text/css")
|
w.Header().Set("Content-Type", "text/css")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue