mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
standardize binary names
This commit is contained in:
20
basics/static-files/README.md
Normal file
20
basics/static-files/README.md
Normal file
@ -0,0 +1,20 @@
|
||||
# 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)
|
||||
|
Reference in New Issue
Block a user