Skip to content

pitucode/apiswagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Rest Api Swagger Type module

Installation

> git clone https://github.com/pitucode/apiswagger
> cd apiswagger
> npm i

Start

> node .

Check your site in https://localhost:8000

Authors

Usage/Examples

sh.get('/tiktok', async (req, res) => {
  if (!req.query.url) return res.status(400).json(no_link_message);

  try {
    const response = await axios.get(`https://pitucode.com/downloader/tiktok?apikey=${yourapikey}&url=${req.query.url}`);
    res.status(200).json(response.data);
  } catch (error) {
    console.log(error);
    res.status(500).json(Error_message);
  }
});

About

Rest Api Swagger Type Module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published