{"id":22071813,"url":"https://github.com/mhutter/ffs","last_synced_at":"2025-07-17T21:36:22.530Z","repository":{"id":144279666,"uuid":"140587879","full_name":"mhutter/ffs","owner":"mhutter","description":"HTTP handler that serves static files from a given directory, but serves index.html if the requested file is not found.","archived":false,"fork":false,"pushed_at":"2022-08-23T15:07:50.000Z","size":4,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T19:17:59.349Z","etag":null,"topics":["golang"],"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/mhutter.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-07-11T14:34:27.000Z","updated_at":"2019-05-05T16:54:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd220c1d-c6ea-4d21-88e7-a49231c2a06d","html_url":"https://github.com/mhutter/ffs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mhutter/ffs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fffs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fffs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fffs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fffs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhutter","download_url":"https://codeload.github.com/mhutter/ffs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fffs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265663117,"owners_count":23807465,"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"],"created_at":"2024-11-30T20:34:25.921Z","updated_at":"2025-07-17T21:36:22.466Z","avatar_url":"https://github.com/mhutter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FallbackFileServer\n\n[![GoDoc](https://godoc.org/github.com/mhutter/ffs?status.svg)](https://gowalker.org/github.com/mhutter/ffs)\n\nHTTP handler that serves static files from a given directory, but serves `index.html` if the requested file is not found.\n\n## Usage\n\nUsage example using [mux][]\n\n```go\nr := mux.NewRouter()\nr.PathPrefix(\"/api\").Handler(api)\n\n// Serve static assets\nr.PathPrefix(\"/\").\n  Handler(ffs.New(publicDir)).\n  Methods(\"GET\")\n```\n\n[mux]: http://gorillatoolkit.org/pkg/mux\n\n\u003e [Manuel Hutter](https://hutter.io) -\n\u003e GitHub [@mhutter](https://github.com/mhutter) -\n\u003e Twitter [@dratir](https://twitter.com/dratir)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhutter%2Fffs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhutter%2Fffs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhutter%2Fffs/lists"}