Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Latest commit

 

History

History
43 lines (31 loc) · 967 Bytes

Discovery.md

File metadata and controls

43 lines (31 loc) · 967 Bytes
title tagline theme_color homepage git
redir
Your own short link made using Deta base
#b72833

A simple short link app made using Deta base.

Features

  • Dashboard UI
  • API
  • Edit/delete short links
  • View all short links with click count

API route (require API KEY)

⚠ To use this route, create an API key from the redir app that you install...

  • Add this to your request header

    "X-Space-App-Key": "<YOUR API KEY>"
    
  • POST /api/create - Create a short link

    id: // it will auto generate a id for the short link if you don't provide one,
    original_link: // your long link,
    
  • GET /api/list - Get all short links

  • POST /api/update/:id - Update a short link

    id: // your id,
    original_link: // your long link,
    
  • DELETE /api/delete/:id - Delete a short link