Skip to content

Commit

Permalink
Deprecate c.t.server.AdminHttpServer#routes
Browse files Browse the repository at this point in the history
Problem

`c.t.server.AdminHttpServer#routes` should have been marked deprecated
some time ago.

Solution

Mark `c.t.server.AdminHttpServer#routes` as deprecated.

Differential Revision: https://phabricator.twitter.biz/D230247
  • Loading branch information
cacoco authored and jenkins committed Oct 18, 2018
1 parent ef20f6b commit 4078e4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Note that ``PHAB_ID=#`` and ``RB_ID=#`` correspond to associated messages in com
Unreleased
----------

Changes
~~~~~~~

* Deprecate `c.t.server.AdminHttpServer#routes`. Routes should be added to the `AdminHttpServer`
via `c.t.server.AdminHttpServer#addAdminRoutes`. ``PHAB_ID=D230247``

Runtime Behavior Changes
~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ trait AdminHttpServer { self: App =>
addAdminRoutes(Seq(route))
}

// TODO: remove routes, have all routes be added via addAdminRoutes
// For now these routes will be added to allRoutes in premain
@deprecated("Routes should be added via `AdminHttpServer#addAdminRoutes`", "2018-10-17")
protected def routes: Seq[Route] = Nil

/**
Expand Down

0 comments on commit 4078e4c

Please sign in to comment.