Add URL shortening functionality with FastAPI

This commit is contained in:
2026-03-02 09:35:34 +02:00
parent 04a2f5a46b
commit d3778d1171
3 changed files with 57 additions and 26 deletions
+3 -3
View File
@@ -12,11 +12,11 @@ source venv/bin/activate
```bash
uvicorn app.main:app --reload
```
Then check:
http://127.0.0.1:8000
Then check:<br>
http://127.0.0.1:8000<br>
http://127.0.0.1:8000/docs
Test Short URL Endpoint
Test Short URL Endpoint:<br>
http://127.0.0.1:8000/shorten
## Running a test