1
0
mirror of https://github.com/actix/examples synced 2024-12-12 14:13:11 +01:00
examples/cors/backend/README.md
2024-08-07 02:04:57 +01:00

27 lines
488 B
Markdown

# 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)
```json
// 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)