Documentation
¶
Overview ¶
Package http provides the HTTP routing and middleware setup for the Shortugo URL shortening service. It defines the Router function that configures all RESTful endpoints, user authentication, gzip compression, request logging, panic recovery, and exposes internal diagnostic routes via pprof.
The package integrates handlers for creating, expanding, deleting, and listing shortened URLs, as well as health checks and internal statistics. It also exposes profiling endpoints under /debug/pprof.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Router ¶
func Router(handler *handlers.URLHandler) *chi.Mux
Router initializes the router with all the necessary routes and middleware.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.