forked from jason/cpolis
Shorten lines by referencing frontend as f and backend as b
This commit is contained in:
@ -5,10 +5,10 @@ import (
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
|
||||
"streifling.com/jason/cpolis/cmd/backend"
|
||||
b "streifling.com/jason/cpolis/cmd/backend"
|
||||
)
|
||||
|
||||
func ServeImage(c *backend.Config, s *backend.CookieStore) http.HandlerFunc {
|
||||
func ServeImage(c *b.Config, s *b.CookieStore) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
absFilepath, err := filepath.Abs(c.PicsDir)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user