Skip to content

Commit

Permalink
refactor(iac): remove rourtes
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Feb 15, 2024
1 parent 37bea85 commit 1a296e6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 174 deletions.
8 changes: 0 additions & 8 deletions src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,6 @@ const config = convict({
default: "",
},
},
pulumi: {
authToken: {
doc: "Pulumi auth token used to run post site create actions ",
env: "PULUMI_AUTH_TOKEN",
format: "required-string",
default: "",
},
},
})

// Perform validation
Expand Down
154 changes: 0 additions & 154 deletions src/routes/iac/email.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import ReviewRequestService from "@services/review/ReviewRequestService"

import { apiLogger } from "./middleware/apiLogger"
import { NotificationOnEditHandler } from "./middleware/notificationOnEditHandler"
import { IacEmailCreationRouter } from "./routes/iac/email"
import getAuthenticatedSubrouter from "./routes/v2/authenticated"
import { ReviewsRouter } from "./routes/v2/authenticated/review"
import getAuthenticatedSitesSubrouter from "./routes/v2/authenticatedSites"
Expand Down Expand Up @@ -373,15 +372,6 @@ const formsgGGsRepairRouter = new FormsgGGsRepairRouter({
reposService,
})

const iacEmailCreationRouter = new IacEmailCreationRouter(
simpleGitInstance,
gitFileSystemService,
sitesService,
usersService,
reposService,
deploymentsService
)

const app = express()

if (isSecure) {
Expand Down Expand Up @@ -411,8 +401,6 @@ app.use(sessionMiddleware)
// Health endpoint
app.use("/v2/ping", (req, res, next) => res.status(200).send("Ok"))

app.use("/v2/iac/email", iacEmailCreationRouter.getRouter())

// Routes layer setup
app.use("/v2/auth", authV2Router.getRouter())
// Endpoints which have require login, but not site access token
Expand Down

0 comments on commit 1a296e6

Please sign in to comment.