Skip to content

Commit

Permalink
chore: remove legacy routes
Browse files Browse the repository at this point in the history
  • Loading branch information
KenLSM committed Oct 28, 2024
1 parent e17afae commit e0fb4ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/app/loaders/express/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ const loadExpressApp = async (connection: Connection) => {
app.use('/singpass/.well-known/jwks.json', SpOidcJwksRouter)
// Registered routes with sgID
app.use('/sgid', SgidRouter)
// Use constant for registered routes with MyInfo servers
app.use(LEGACY_MYINFO_ROUTER_PREFIX, MyInfoRouter)
app.use(MYINFO_ROUTER_PREFIX, MyInfoRouter)

// Legacy frontend routes which may still be in use
Expand Down
2 changes: 0 additions & 2 deletions src/app/modules/myinfo/myinfo.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { spcpMyInfoConfig } from '../../config/features/spcp-myinfo.config'
* registered with MyInfo.
*/
export const MYINFO_ROUTER_PREFIX = '/mi'
// To support backwards compatibility with the old MyInfo router prefix
export const LEGACY_MYINFO_ROUTER_PREFIX = '/myinfo'

/**
* Path to be added after MYINFO_ROUTER_PREFIX for the login
Expand Down

0 comments on commit e0fb4ec

Please sign in to comment.