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:
parent
e6eeace5d5
commit
866ad278d5
@ -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
26
cors/backend/README.md
Normal 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)
|
Loading…
Reference in New Issue
Block a user