1
0
mirror of https://github.com/actix/examples synced 2025-06-26 09:17:41 +02:00

fix static-files readme name

This commit is contained in:
Rob Ede
2022-02-18 03:36:04 +00:00
parent d25d71111f
commit 1206905a11
28 changed files with 57 additions and 59 deletions

View File

@ -4,7 +4,7 @@
### server
```bash
```sh
cd basics/basics
cargo run
# Started http server: 127.0.0.1:8080
@ -18,4 +18,4 @@ cargo run
- [http://localhost:8080/favicon](http://localhost:8080/favicon)
- [http://localhost:8080/welcome](http://localhost:8080/static/welcome.html)
- [http://localhost:8080/notexit](http://localhost:8080/static/404.html) display 404 page
- [http://localhost:8080/error](http://localhost:8080/error) Panic after request
- [http://localhost:8080/error](http://localhost:8080/error) Panic after request

View File

@ -3,7 +3,7 @@ The endpoints do nothing.
## Usage
```bash
```sh
cd basics/nested-routing
cargo run
# Started http server: 127.0.0.1:8080

View File

@ -4,7 +4,7 @@
### server
```bash
```sh
cd basics/state
cargo run
# Started http server: 127.0.0.1:8080

View File

@ -1,5 +1,5 @@
[package]
name = "static_index"
name = "static-files"
version = "1.0.0"
edition = "2021"

View File

@ -1,4 +1,4 @@
# static_index
# Static Files
Demonstrates how to serve static files. Inside the `./static` folder you will find 2 subfolders:
@ -8,13 +8,12 @@ Demonstrates how to serve static files. Inside the `./static` folder you will fi
## Usage
```bash
$ cd basics/static_index
$ cargo run
```sh
cd basics/static-files
cargo run
```
### Available Routes
- [GET /](http://localhost:8080/)
- [GET /images](http://localhost:8080/images)

View File

@ -10,7 +10,7 @@ A simple Todo project using a SQLite database.
All instructions assume you have changed into this folder:
```bash
```sh
cd basics/todo
```