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 222aa25 commit 859b0a2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions grellyddotcom.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/grellyd/filelogging/globallogger"
"github.com/grellyd/filelogging/state"
"github.com/grellyd/grellyddotcom/config"
"github.com/grellyd/grellyddotcom/handlers"
"github.com/grellyd/grellyddotcom/router"
)

Expand Down Expand Up @@ -111,10 +110,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

0 comments on commit 859b0a2

Please sign in to comment.