1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00
examples/basics/static-files
2024-08-07 02:04:57 +01:00
..
src standardize binary names 2022-02-18 02:22:58 +00:00
static chore: fmt 2024-08-07 02:04:57 +01:00
Cargo.toml move a couple more things to workspace deps 2023-01-02 20:33:43 +00:00
README.md format markdown 2022-03-06 00:43:10 +00:00

Static Files

Demonstrates how to serve static files. Inside the ./static folder you will find 2 subfolders:

  • root: A tree of files that will be served at the web root /. This includes the css and js folders, each containing an example file.
  • images: A list of images that will be served at /images path, with file listing enabled.

Usage

cd basics/static-files
cargo run

Available Routes