router

package
v0.1.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

router/router.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(coreCfg *config.CoreConfig, logger *zap.Logger) chi.Router

New creates a chi.Router pre-wired with Waffle's standard middleware stack: - RequestID - RealIP - Recoverer (panic → 500) - Compression (if EnableCompression is true) - body size limit (MaxRequestBodyBytes) - metrics HTTP middleware - request logging - NotFound / MethodNotAllowed JSON handlers It does NOT mount health, version, pprof, etc.; those remain app-level decisions.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL