🎉 svc-infra v1.0 is here — Production-ready backend infrastructure
What's new
nfrax logonfrax

Infrastructure that just works. Ship products, not boilerplate.

Frameworks

  • svc-infra
  • ai-infra
  • fin-infra
  • robo-infra

Resources

  • Getting Started
  • What's New
  • Contributing

Community

  • GitHub

© 2026 nfrax. All rights reserved.

nfrax logonfrax
Start HereWhat's New
GitHub
svc-infra / API Reference

DualAPIRouter

from svc_infra.api.fastapi import DualAPIRouter
View source
svc_infra.api.fastapi
Extends:APIRouter

Registers two routes per endpoint: • primary: shown in OpenAPI (no trailing slash) • alternate: hidden in OpenAPI (with trailing slash) Keeps redirect_slashes=False behavior (no 307s).

Constructor
DualAPIRouter(args = (), redirect_slashes: bool = False, kwargs = {}) -> None
ParameterTypeDefaultDescription
argsAny()—
redirect_slashesboolFalse—
kwargsAny{}—

Methods

On This Page

Constructoradd_api_routedeletegetheadlistoptionspatchpostputwebsocket