diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f6a5c86..51f7070 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,7 +42,7 @@ jobs: run: npm test - name: Upload HTML Report - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4.1.0 with: name: html-report path: newman/*.html diff --git a/.github/workflows/newman.yml b/.github/workflows/newman.yml index 8468e52..eb242e0 100644 --- a/.github/workflows/newman.yml +++ b/.github/workflows/newman.yml @@ -22,5 +22,4 @@ jobs: - run: npm install - run: npm run generateoas - run: npm start & npx wait-on http://localhost:3000 - - run: npm test - \ No newline at end of file + - run: npm test \ No newline at end of file diff --git a/fly.production.toml b/fly.production.toml index ec1e24d..9ea1137 100644 --- a/fly.production.toml +++ b/fly.production.toml @@ -8,10 +8,6 @@ primary_region = "sin" [build] image = "ghcr.io/srikanthlogic/google-play-api:main" -[services] - [services.http] - ports = ["http"] - [http_service] protocol = "tcp" internal_port = 3000 @@ -22,14 +18,9 @@ primary_region = "sin" processes = ["app"] [http_service.concurrency] type = "requests" - soft_limit = 200 - hard_limit = 250 - -[[services.ports]] - handlers = ["http"] - port = 80 - force_https = true # optional + soft_limit = 400 + hard_limit = 500 [env] COUNTRY_OF_QUERY = "IN" - LOGGING = true + LOGGING = true \ No newline at end of file diff --git a/fly.staging.toml b/fly.staging.toml index d11f993..df1f416 100644 --- a/fly.staging.toml +++ b/fly.staging.toml @@ -8,10 +8,6 @@ primary_region = "sin" [build] image = "ghcr.io/srikanthlogic/google-play-api:dev" -[services] - [services.http] - ports = ["http"] - [http_service] protocol = "tcp" internal_port = 3000 @@ -22,14 +18,8 @@ primary_region = "sin" processes = ["app"] [http_service.concurrency] type = "requests" - soft_limit = 200 - hard_limit = 250 - - [[services.ports]] - handlers = ["http"] - port = 80 - force_https = true # optional - + soft_limit = 400 + hard_limit = 500 [env] COUNTRY_OF_QUERY = "IN" diff --git a/lib/index.js b/lib/index.js index 8394ab9..2bbe773 100644 --- a/lib/index.js +++ b/lib/index.js @@ -250,6 +250,14 @@ router.get('/categories/', async (req, res, next) => { } }); +/* Collection list */ +router.get('/collections/', async (req, res, next) => { + try { + res.json(Object.keys(gplay.collection)); + } catch (error) { + next(error); // Pass the error to Express's error-handling middleware + } +}); function anonymizeReplyText(replyText, userName) { const userPlaceholder = '<>';