From efeed5b452baced546dba62d8d2f433356662ff4 Mon Sep 17 00:00:00 2001 From: Rhys Mills Date: Fri, 6 Sep 2024 13:23:00 +0100 Subject: [PATCH] Remove unused endpoints --- app/controllers/App.scala | 20 -------------------- conf/routes | 3 --- 2 files changed, 23 deletions(-) diff --git a/app/controllers/App.scala b/app/controllers/App.scala index 7664f2a6..48b9a8e5 100644 --- a/app/controllers/App.scala +++ b/app/controllers/App.scala @@ -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") - } - } diff --git a/conf/routes b/conf/routes index 3f1fd3f9..6b91d076 100644 --- a/conf/routes +++ b/conf/routes @@ -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