Shorten lines by referencing frontend as f and backend as b

This commit is contained in:
2024-07-13 14:09:11 +02:00
parent d0c1e525d2
commit 85e2f8b4ad
7 changed files with 105 additions and 107 deletions

View File

@ -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 {