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:
@ -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
|
||||
|
@ -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
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
### server
|
||||
|
||||
```bash
|
||||
```sh
|
||||
cd basics/state
|
||||
cargo run
|
||||
# Started http server: 127.0.0.1:8080
|
||||
|
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "static_index"
|
||||
name = "static-files"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user