{"id":16977634,"url":"https://github.com/potatogopher/gorilla-middleware","last_synced_at":"2025-09-08T09:34:50.157Z","repository":{"id":99922134,"uuid":"163559682","full_name":"potatogopher/gorilla-middleware","owner":"potatogopher","description":"\"Chaining\" Middleware with Gorilla Mux","archived":false,"fork":false,"pushed_at":"2018-12-30T03:55:23.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T16:33:10.516Z","etag":null,"topics":["golang","gorilla-mux","http"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/potatogopher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-30T03:49:29.000Z","updated_at":"2019-07-14T08:18:31.000Z","dependencies_parsed_at":"2023-05-11T02:30:41.576Z","dependency_job_id":null,"html_url":"https://github.com/potatogopher/gorilla-middleware","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potatogopher%2Fgorilla-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potatogopher%2Fgorilla-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potatogopher%2Fgorilla-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potatogopher%2Fgorilla-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/potatogopher","download_url":"https://codeload.github.com/potatogopher/gorilla-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244875046,"owners_count":20524591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","gorilla-mux","http"],"created_at":"2024-10-14T01:29:25.725Z","updated_at":"2025-03-21T22:13:23.746Z","avatar_url":"https://github.com/potatogopher.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chaining Middleware with Gorilla Mux\nThis little API shows you how you can use Gorilla's `Router.Use` function to register middlewares. This approach is an alternative to wrapping middlewares around middlewares and so on.\n\n## Setup\n```zsh\n$ git clone git@github.com:potatogopher/gorilla-middleware.git\n$ cd gorilla-middleware\n$ go run main.go\n```\n\n## Middlewares\n\n**Logger**\n\nThe logging middleware will log data about the requests being made by a client.\n\n**CORS**\n\nCORS provides Cross-Origin Resource Sharing. CORS will be handled for all routes that recognize the `OPTIONS` method. [More info](https://github.com/gorilla/mux/issues/381)\n\n**Recovery Handler**\n\nThe recovery handler will prevent a panic from happening. It will end up responding with a 500 Internal Server Error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotatogopher%2Fgorilla-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotatogopher%2Fgorilla-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotatogopher%2Fgorilla-middleware/lists"}