Skip to content

Commit

Permalink
Remove unused endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
rhystmills committed Sep 6, 2024
1 parent e2462c4 commit efeed5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
20 changes: 0 additions & 20 deletions app/controllers/App.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,4 @@ class App(
Future.successful(Ok(result))
}

def hello = AuthAction {
logger.info("saying hello")
Ok(views.html.Application.hello("Hello world"))
}

def testScan = Action { req =>

val criteria = TagSearchCriteria(
q = req.getQueryString("q"),
types = req.getQueryString("types").map(_.split(",").toList)
)

val startTime = System.currentTimeMillis
val paths = TagRepository.scanSearch(criteria)
val time = System.currentTimeMillis - startTime

paths foreach println
Ok(s"scan complete ${paths.size} items in $time ms")
}

}
3 changes: 0 additions & 3 deletions conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ GET /tools/newspaperintegration/tags/deleted/:since controlle
GET /tools/newspaperintegration/tags/created/:since controllers.ReadOnlyApi.createsAsXml(since: Long)


GET /hello controllers.App.hello
GET /testScan controllers.App.testScan

GET /oauthCallback controllers.Login.oauthCallback
GET /logout controllers.Login.logout
GET /reauth controllers.Login.reauth
Expand Down

0 comments on commit efeed5b

Please sign in to comment.