Link Shortener

This is a RESTful API built with Express.js for shortening and managing URLs.

It provides endpoints for generating, retrieving, and visiting short URLs.

Documentation

Generate Short URL POST /api/shorten

Creates a shortened URL from a long URL. Send a POST request with the original URL in the request body.

Retrieve Original URL GET /api/url/:id

Retrieves the original URL for a given short URL ID. Returns the full URL information.

Redirect to Original URL GET /:id

Automatically redirects to the original URL when visiting the shortened link.

Made with 🧡 by Nirmit Mishra.