Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused endpoints #528

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading