Skip to content

Commit

Permalink
Remove Router API
Browse files Browse the repository at this point in the history
This no longer runs in our publishing system.
  • Loading branch information
theseanything committed Dec 11, 2024
1 parent 5bbcd88 commit c690cdf
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 546 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

* Remove router-api [PR](https://github.com/alphagov/gds-api-adapters/pull/1308)

## 97.6.0

* Add a method to fetch a single host content item [PR](https://github.com/alphagov/gds-api-adapters/pull/1306)
Expand Down
14 changes: 0 additions & 14 deletions lib/gds_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
require "gds_api/maslow"
require "gds_api/organisations"
require "gds_api/publishing_api"
require "gds_api/router"
require "gds_api/search"
require "gds_api/search_api_v2"
require "gds_api/support"
Expand Down Expand Up @@ -155,19 +154,6 @@ def self.publishing_api(options = {})
)
end

# Creates a GdsApi::Router adapter for communicating with Router API
#
# This will set a bearer token if a ROUTER_API_BEARER_TOKEN environment
# variable is set
#
# @return [GdsApi::Router]
def self.router(options = {})
GdsApi::Router.new(
Plek.find("router-api"),
{ bearer_token: ENV["ROUTER_API_BEARER_TOKEN"] }.merge(options),
)
end

# Creates a GdsApi::Search adapter to access via a search.* hostname
#
# @return [GdsApi::Search]
Expand Down
62 changes: 0 additions & 62 deletions lib/gds_api/router.rb

This file was deleted.

94 changes: 0 additions & 94 deletions lib/gds_api/test_helpers/router.rb

This file was deleted.

Loading

0 comments on commit c690cdf

Please sign in to comment.