Skip to content

Commit d240f5a

Browse files
committed
port updated in README
Signed-off-by: Pushkar Mishra <[email protected]>
1 parent bc482cd commit d240f5a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ A lightning-fast URL shortener service built with Rust. Turn long, unwieldy URLs
4141
cargo run
4242
```
4343

44-
4. **Enjoy at http://localhost:8081**
44+
4. **Enjoy at http://localhost:8080**
4545

4646
## 🔌 API Guide
4747

4848
### Shorten a URL
4949
```bash
50-
curl -X POST http://localhost:8081/api/shorten \
50+
curl -X POST http://localhost:8080/api/shorten \
5151
-H "Content-Type: application/json" \
5252
-d '{"url": "https://example.com/very/long/path"}'
5353
```
@@ -61,18 +61,18 @@ Response:
6161

6262
### Create Custom Short URL
6363
```bash
64-
curl -X POST http://localhost:8081/api/shorten \
64+
curl -X POST http://localhost:8080/api/shorten \
6565
-H "Content-Type: application/json" \
6666
-d '{"url": "https://rust-lang.org", "custom_id": "rust"}'
6767
```
6868

6969
### Get Link Stats
7070
```bash
71-
curl http://localhost:8081/api/stats/abc123
71+
curl http://localhost:8080/api/stats/rust
7272
```
7373

7474
### Use Your Short Link
75-
Just open `http://localhost:8081/abc123` in your browser!
75+
Just open `http://localhost:8080/rust` in your browser!
7676

7777
## 🧪 Testing
7878

0 commit comments

Comments
 (0)