This is a mock server for the Hot Tub app. It is used to mock the API responses for the app.
npm install
npm run dev
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
curl -X POST http://localhost:3000/api/status
curl -X POST http://localhost:3000/api/videos -d '{"page":"1","channel":"alice","sort":"popular","sexuality":"straight"}'
curl -X POST http://localhost:3000/api/videos -d '{"page":"1","channel":"alice","sort":"popular","sexuality":"straight","query":"test"}'
- 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").