1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00
examples/basics/static_index
2022-01-29 14:21:21 +00:00
..
src Restructure folders (#411) 2021-02-26 00:57:58 +00:00
static Restructure folders (#411) 2021-02-26 00:57:58 +00:00
.gitattributes Restructure folders (#411) 2021-02-26 00:57:58 +00:00
Cargo.toml Update basics/static-index to v4. (#480) 2022-01-29 14:21:21 +00:00
README.md fix broken links (#441) 2021-10-06 22:28:53 +01:00

static_index

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_index
$ cargo run

Available Routes