Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitst05 committed May 4, 2024
1 parent a298f96 commit 7d6e4a9
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 65 deletions.
20 changes: 10 additions & 10 deletions internal/server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ func (s *Server) RegisterRoutes() http.Handler {

router.HandleFunc("/", handler.HomeHandler())

router.HandleFunc("/cards", handler.CardHandler())

router.HandleFunc("/shrink/png", handler.HandlePNG())
router.HandleFunc("/shrink/jpg", handler.HandleJPG())
router.HandleFunc("/shrink/pdf", handler.HandlePDF())
router.HandleFunc("/shrink/docx", handler.HandleDOCX())
router.HandleFunc("/shrink/mp3", handler.HandleMP3())
router.HandleFunc("/shrink/wav", handler.HandleWAV())
router.HandleFunc("/shrink/mp4", handler.HandleMP4())
router.HandleFunc("/shrink/mkv", handler.HandleMKV())
router.HandleFunc("GET /cards", handler.CardHandler())

router.HandleFunc("POST /shrink/png", handler.HandlePNG())
router.HandleFunc("POST /shrink/jpg", handler.HandleJPG())
router.HandleFunc("POST /shrink/pdf", handler.HandlePDF())
router.HandleFunc("POST /shrink/docx", handler.HandleDOCX())
router.HandleFunc("POST /shrink/mp3", handler.HandleMP3())
router.HandleFunc("POST /shrink/wav", handler.HandleWAV())
router.HandleFunc("POST /shrink/mp4", handler.HandleMP4())
router.HandleFunc("POST /shrink/mkv", handler.HandleMKV())

return router
}
4 changes: 2 additions & 2 deletions web/templates/components/audio_svg_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion web/templates/components/audio_svg_templ.txt

This file was deleted.

28 changes: 14 additions & 14 deletions web/templates/components/cards_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions web/templates/components/cards_templ.txt

This file was deleted.

4 changes: 2 additions & 2 deletions web/templates/components/document_svg_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion web/templates/components/document_svg_templ.txt

This file was deleted.

Loading

0 comments on commit 7d6e4a9

Please sign in to comment.