Skip to content

Commit

Permalink
Edits
Browse files Browse the repository at this point in the history
  • Loading branch information
grellyd committed Aug 29, 2023
1 parent 116cc4d commit 933f2c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions grellyddotcom.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

const (
AddrHTTP = ":80"
AddrHTTP = ":3080"
AddrHTTPS = ":443"
)

Expand Down Expand Up @@ -111,10 +111,10 @@ func buildRouter() (*router.Router, error) {

func registerRoutes() (*router.Router, error) {
r := router.NewRouter()
// err := r.Register("/qrgen", "^/qrgen$", handlers.QRGen)
// if err != nil {
// return nil, fmt.Errorf("unable to register qrgen: %w", err)
// }
err := r.Register("/qrgen", "^/qrgen$", handlers.QRGen)
if err != nil {
return nil, fmt.Errorf("unable to register qrgen: %w", err)
}
// err = r.Register("/", "(^/$)|(^/(status|about|quote|xmas)$)", handlers.File)
// if err != nil {
// return nil, fmt.Errorf("unable to register static: %w", err)
Expand Down Expand Up @@ -151,7 +151,7 @@ func registerRoutes() (*router.Router, error) {
// if err != nil {
// return nil, fmt.Errorf("unable to register email: %w", err)
// }
err := r.Register("/certs/", "^/certs/([a-zA-Z0-9_]*).html$", handlers.File)
err = r.Register("/certs/", "^/certs/([a-zA-Z0-9_]*).html$", handlers.File)
if err != nil {
return nil, fmt.Errorf("unable to register certs: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func QRGen(w http.ResponseWriter, r *http.Request) {
fmt.Printf("r.RequestURI: %v\n", r.RequestURI)

path := "../pages/templates/qrgen.tmpl"
path := "./pages/templates/qrgen.tmpl"

globallogger.Info("in qrgen")

Expand Down

0 comments on commit 933f2c4

Please sign in to comment.