https://github.com/simrat39/yaus
A simple in-memory url shortener (poc)
https://github.com/simrat39/yaus
Last synced: 12 months ago
JSON representation
A simple in-memory url shortener (poc)
- Host: GitHub
- URL: https://github.com/simrat39/yaus
- Owner: simrat39
- License: mit
- Created: 2022-08-20T02:18:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-20T02:36:10.000Z (almost 4 years ago)
- Last Synced: 2025-06-05T17:47:01.072Z (about 1 year ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# YAUS
### *Yet another URL Shortener*
A simple in-memory URL shortener, made for fun.
### Development
```sh
npm ci
npm run dev
```
### Usage

### API Overview
```
POST /shorten
Request:
- headers: {
Accept: "application/json",
"Content-Type": "application/json",
},
- body: { url: string },
Response:
- 400
- 200
- Content-Type: application/json; charset=utf-8,
- body: { shortened: string }
```
```
GET /:id
Response:
- 302
- Redirects to saved url
- 400
- URL not found
```