Skip to content

ts-migration: convert some routes from js to ts#1662

Merged
iamitprakash merged 14 commits intodevelopfrom
ts-migration/routes-1
Dec 27, 2023
Merged

ts-migration: convert some routes from js to ts#1662
iamitprakash merged 14 commits intodevelopfrom
ts-migration/routes-1

Conversation

@sahsisunny
Copy link
Contributor

@sahsisunny sahsisunny commented Nov 2, 2023

Issue Ticket Number:-

Description:

Change some files into typescript

Is Under Feature Flag

  • Yes
  • No

Database changes

  • Yes
  • No

Breaking changes (If your feature is breaking/missing something please mention pending tickets)

  • Yes
  • No

Is Development Tested?

  • Yes
  • No

Tested in staging?

  • Yes
  • No

Add relevant Screenshot below ( e.g test coverage etc. )

@sahsisunny sahsisunny marked this pull request as ready for review November 20, 2023 13:34
@sahsisunny sahsisunny linked an issue Nov 20, 2023 that may be closed by this pull request
11 tasks
import goals from "../controllers/goals";
const router = express.Router();

router.get("/token", authenticate, goals.getGoalSiteToken);

Check failure

Code scanning / CodeQL

Missing rate limiting

This route handler performs [authorization](1), but is not rate-limited. This route handler performs [authorization](2), but is not rate-limited. This route handler performs [authorization](3), but is not rate-limited.
import { newTrade } from "../middlewares/validators/trading";
import { trade } from "../controllers/trading";

router.post("/stock/new/self", authenticate, newTrade, trade);

Check failure

Code scanning / CodeQL

Missing rate limiting

This route handler performs [authorization](1), but is not rate-limited. This route handler performs [authorization](2), but is not rate-limited. This route handler performs [authorization](3), but is not rate-limited.

const router = express.Router();

router.patch("/user", validateUserRoles, authenticate, updateRoles);

Check failure

Code scanning / CodeQL

Missing rate limiting

This route handler performs [authorization](1), but is not rate-limited. This route handler performs [authorization](2), but is not rate-limited. This route handler performs [authorization](3), but is not rate-limited.
@sahsisunny sahsisunny marked this pull request as draft November 21, 2023 09:30
@sahsisunny sahsisunny marked this pull request as ready for review December 22, 2023 15:19
import { notifyController } from "../controllers/notify";
import { notifyValidator } from "../middlewares/validators/notify";

router.post("/", authenticate, notifyValidator, notifyController);

Check failure

Code scanning / CodeQL

Missing rate limiting

This route handler performs [authorization](1), but is not rate-limited. This route handler performs [authorization](2), but is not rate-limited. This route handler performs [authorization](3), but is not rate-limited.
@Ajeyakrishna-k
Copy link
Contributor

Please add the issue number in description

Copy link
Contributor

@skv93-coder skv93-coder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iamitprakash iamitprakash merged commit 9d01a56 into develop Dec 27, 2023
@iamitprakash iamitprakash deleted the ts-migration/routes-1 branch December 27, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Migrate] - JavaScript to TypeScript

4 participants