File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments