1
0
mirror of https://github.com/actix/examples synced 2024-12-18 00:13:57 +01:00
examples/basics/static_index/README.md
Altug Sahin 8186a8cfea
fix broken links (#441)
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
Co-authored-by: Altug Sahin <altugsahin@gmail.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-10-06 22:28:53 +01:00

21 lines
517 B
Markdown

# 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
```bash
$ cd basics/static_index
$ cargo run
```
### Available Routes
- [GET /](http://localhost:8080/)
- [GET /images](http://localhost:8080/images)