Skip to content

iambenkay/urlspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URLSPACE

A place to store links to your social media accounts or any accounts at all. No authentication mechanism set in place yet. API is live at https://urlspace.herokuapp.com

SETUP

Environment is linux

git clone https://github.com/iambenkay/urlspace.git
cd urlspace
yarn add nodemon
npx nodemon

HOW TO USE

Create a new URL space with your username

POST /api/v1/:user

body:
{
    "name": String
    "link": String
}

The request above creates searches for an existing URL space belonging to user and creates one if there are none. It then adds the body to the URL space and returns the content of the URL space.

Fetch contents of a URL space

GET /api/v1/:user

The request above fetches the content of the URL space belonging to user

Fetch URL of a particular account in URL space

GET /api/v1/:user/:account

The request above fetches the url of the particular account in the URL space belonging to user

Now you can visit /:user/:account and it will redirect you to the link of the account.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published