Skip to content

Commit

Permalink
remove obsolete api passthroughs
Browse files Browse the repository at this point in the history
  • Loading branch information
blakery committed Aug 18, 2023
1 parent 1958768 commit 865a54a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ trait BillingApiService extends FireCloudDirectives with StreamingPassthrough {
pathPrefix("billing") {
// all paths under /api/billing pass through to the same path in Rawls
streamingPassthrough(Uri.Path("/api/billing") -> Uri(FireCloudConfig.Rawls.authUrl + "/billing"))
} ~
path("user" / "billing" / Segment) { projectId =>
delete {
passthrough(s"$userBillingUrl/$projectId", DELETE)
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,6 @@ trait UserApiService
}
} ~
pathPrefix("api") {
pathPrefix("profile" / "billing") {
pathEnd {
get {
passthrough(UserApiService.billingUrl, HttpMethods.GET)
}
} ~
path(Segment) { projectName =>
get {
passthrough(UserApiService.billingProjectUrl(projectName), HttpMethods.GET)
}
}
} ~
path("profile" / "billingAccounts") {
get {
passthrough(UserApiService.billingAccountsUrl, HttpMethods.GET)
Expand Down

0 comments on commit 865a54a

Please sign in to comment.