Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 673 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 673 Bytes

building

• cloning

git clone https://github.com/Swag666baby/url-shortener
cd url-shortener 

• running

yarn
tsc
node dist/server

example of use

const axios = require("axios");
async function shortener(){
    const request = await axios.post("http://localhost:3000/shorter", {"url": "https://github.com"})
    console.log(request.data)
}
shortener()