Skip to content

e03ccd3df65a2d128247/hottub-source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mock Server

This is a mock server for the Hot Tub app. It is used to mock the API responses for the app.

Running the server for dev

npm install
npm run dev

Running the server for production

npm install
npm run build

# deploy to your server
# scp -r dist package.json <your server>

# on your server
npm install
npm start

# the source is ready at http://your-server:3000
# do not forget configure your firewall to allow network traffic to pass through port 3000

API Endpoints

Status

curl -X POST http://localhost:3000/api/status

Popular Videos

curl -X POST http://localhost:3000/api/videos -d '{"page":"1","channel":"alice","sort":"popular","sexuality":"straight"}'

Search Videos

curl -X POST http://localhost:3000/api/videos -d '{"page":"1","channel":"alice","sort":"popular","sexuality":"straight","query":"test"}'

Parameters

  • page: The page number for pagination (e.g., "1").
  • channel: The network/channel to filter and/or route to the correct results (e.g., "hottub").
  • sort: The sorting order of the results (e.g., "popular").
  • sexuality: The sexuality filter for the videos (e.g., "straight").
  • query: The search query string (e.g., "test").

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published