Skip to content

Commit

Permalink
Ft Collections (#71)
Browse files Browse the repository at this point in the history
* Uptake UploadActions 4.1
* Update Fly config
* Add collections endpoint
  • Loading branch information
srikanthlogic authored Jan 17, 2024
1 parent 7d4cc14 commit 09c1358
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/newman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ jobs:
- run: npm install
- run: npm run generateoas
- run: npm start & npx wait-on http://localhost:3000
- run: npm test

- run: npm test
15 changes: 3 additions & 12 deletions fly.production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
14 changes: 2 additions & 12 deletions fly.staging.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<<USER>>';
Expand Down

0 comments on commit 09c1358

Please sign in to comment.