1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00

doc: add README.md into cors/backend (#618)

This commit is contained in:
liuliu 2023-04-06 18:11:44 +08:00 committed by GitHub
parent e6eeace5d5
commit 866ad278d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# Cross-Origin Resource Sharing (CORS)
## Run Server
## [Run Server](backend/README.md)
```sh
cd cors/backend

26
cors/backend/README.md Normal file
View File

@ -0,0 +1,26 @@
# actix_cors::Cors
## Running Server
```sh
cd cors/backend
cargo run
# starting HTTP server at http://localhost:8080
```
### web client
- [http://localhost:8080/user/info](http://localhost:8080/user/info)
```json5
// payload structure
{
"username": "username",
"email": "email",
"password": "password",
"confirm_password": "password"
}
```
## Others
- For more related examples of [actix_cors](https://docs.rs/actix-cors/latest/actix_cors/struct.Cors.html)