mirror of
https://gitlab.com/foxixus/neomovies-api.git
synced 2025-10-27 17:38:51 +05:00
feat: Update player API to use id_type in path
All Russian players now use format: /players/{player}/{id_type}/{id}
- id_type can be kp (Kinopoisk) or imdb
- Alloha, Lumex, Vibix, HDVB support both ID types
- Added validation for id_type parameter
- Updated handlers to parse id_type from path
This commit is contained in:
42
.env.example
42
.env.example
@@ -1,28 +1,34 @@
|
||||
# Required
|
||||
MONGO_URI=
|
||||
MONGO_DB_NAME=database
|
||||
MONGO_URI=mongodb://localhost:27017/neomovies
|
||||
MONGO_DB_NAME=neomovies
|
||||
|
||||
TMDB_ACCESS_TOKEN=your_tmdb_access_token
|
||||
JWT_SECRET=your_jwt_secret_key
|
||||
|
||||
# Service
|
||||
PORT=3000
|
||||
BASE_URL=http://localhost:3000
|
||||
NODE_ENV=development
|
||||
KPAPI_KEY=your_kp_api_key
|
||||
KPAPI_BASE_URL=https://kinopoiskapiunofficial.tech/api
|
||||
|
||||
# Email (Gmail)
|
||||
GMAIL_USER=
|
||||
GMAIL_APP_PASSWORD=your_gmail_app_password
|
||||
HDVB_TOKEN=your_hdvb_token
|
||||
|
||||
VIBIX_HOST=https://vibix.org
|
||||
VIBIX_TOKEN=your_vibix_token
|
||||
|
||||
LUMEX_URL=https://p.lumex.space
|
||||
|
||||
# Players
|
||||
LUMEX_URL=
|
||||
ALLOHA_TOKEN=your_alloha_token
|
||||
|
||||
# Torrents (RedAPI)
|
||||
REDAPI_BASE_URL=http://redapi.cfhttp.top
|
||||
REDAPI_KEY=your_redapi_key
|
||||
|
||||
# Google OAuth
|
||||
GOOGLE_CLIENT_ID=
|
||||
GOOGLE_CLIENT_SECRET=
|
||||
JWT_SECRET=your_jwt_secret_key
|
||||
|
||||
GMAIL_USER=your_gmail@gmail.com
|
||||
GMAIL_APP_PASSWORD=your_gmail_app_password
|
||||
|
||||
GOOGLE_CLIENT_ID=your_google_client_id
|
||||
GOOGLE_CLIENT_SECRET=your_google_client_secret
|
||||
GOOGLE_REDIRECT_URL=http://localhost:3000/api/v1/auth/google/callback
|
||||
FRONTEND_URL=http://localhost:3001
|
||||
|
||||
BASE_URL=http://localhost:3000
|
||||
FRONTEND_URL=http://localhost:3001
|
||||
|
||||
PORT=3000
|
||||
NODE_ENV=development
|
||||
|
||||
Reference in New Issue
Block a user