{"id":20029515,"url":"https://github.com/http-rs/tide-fs","last_synced_at":"2025-05-05T03:32:26.922Z","repository":{"id":54542251,"uuid":"336539354","full_name":"http-rs/tide-fs","owner":"http-rs","description":"File system handlers for the Tide web-framework","archived":false,"fork":false,"pushed_at":"2021-04-21T20:42:22.000Z","size":28,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-08T16:11:12.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/http-rs.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}},"created_at":"2021-02-06T13:03:41.000Z","updated_at":"2024-10-28T13:23:27.000Z","dependencies_parsed_at":"2022-08-13T19:10:35.174Z","dependency_job_id":null,"html_url":"https://github.com/http-rs/tide-fs","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/http-rs%2Ftide-fs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Ftide-fs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Ftide-fs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Ftide-fs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/http-rs","download_url":"https://codeload.github.com/http-rs/tide-fs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252435281,"owners_count":21747385,"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":[],"created_at":"2024-11-13T09:20:43.135Z","updated_at":"2025-05-05T03:32:26.520Z","avatar_url":"https://github.com/http-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tide-fs\n[![Build Status](https://github.com/mendelt/tide-fs/workflows/Build/badge.svg)](https://github.com/mendelt/tide-fs/actions?query=workflow%3ABuild+event%3Apush+branch%3Amaster)\n\nFile system handlers for the Tide web-framework.\n\nTide-fs contains extensions for the Tide web-framework to serve files or whole directories from your file-system. Tide-fs provides a `ServeDir` and a `ServeFile` endpoint. It also provides a convenient extension trait to the `tide::Route` type that allow you to add these endpoints with the `serve_dir` and `serve_file` methods. `ServeFile` serves a single file on a single route;\n```rust\nuse tide_fs::prelude::*;\n\nlet mut app = tide::new();\napp.at(\"index.html\").serve_file(\"examples/content/index.html\")?;\n```\n\n`ServeDir` maps a section of a route to files in a directory\n```rust\nuse tide_fs::prelude::*;\n\nlet mut app = tide::new();\napp.at(\"static/\").serve_dir(\"examples/content/\")?;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp-rs%2Ftide-fs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttp-rs%2Ftide-fs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp-rs%2Ftide-fs/lists"}