danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
https://danielmiessler.com/p/fabric-origin-story
MIT License
25.6k stars 2.72k forks source link

fix: fix default gin #1133

Closed igophper closed 1 week ago

igophper commented 1 week ago

What this Pull Request (PR) does

Please briefly describe what this PR does. gin.Default() to gin.New() because gin.Default() already includes the Logger and Recover middleware.

r.Use(gin.Logger())
r.Use(gin.Recovery())

Related issues

Please reference any open issues this PR relates to in here. If it closes an issue, type closes #[ISSUE_NUMBER].

Screenshots

Provide any screenshots you may find relevant to facilitate us understanding your PR.