1
0
mirror of https://github.com/actix/examples synced 2025-01-22 14:05:55 +01:00
examples/static_index
2020-09-12 16:49:45 +01:00
..
2020-09-12 16:49:45 +01:00
2020-09-12 16:49:45 +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 examples/static_index
$ cargo run

This will start the server on port 8080, it can be viewed at http://localhost:8080.