-
Notifications
You must be signed in to change notification settings - Fork 560
/
Copy pathroutes
43 lines (34 loc) · 2.49 KB
/
routes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
# For dev machines
GET /assets/*path dev.DevAssetsController.at(path)
GET /_healthcheck controllers.HealthCheck.healthCheck()
GET /_cdn_healthcheck controllers.HealthCheck.healthCheck()
# liveblogs, minutes.
# NOTE: if updating the .json endpoint below, you must also update the fastly cache purger path used
# See https://github.com/guardian/fastly-cache-purger/blob/master/src/main/scala/com/gu/fastly/Lambda.scala
# and https://github.com/guardian/fastly-cache-purger/pull/14 for details
GET /$path<[^/]+/([^/]+/)?live/.*>.json controllers.LiveBlogController.renderJson(path, page: Option[String], lastUpdate: Option[String], rendered: Option[Boolean], isLivePage: Option[Boolean], filterKeyEvents: Option[Boolean], topics: Option[String])
GET /$path<[^/]+/([^/]+/)?live/.*>/email controllers.LiveBlogController.renderEmail(path)
GET /$path<[^/]+/([^/]+/)?live/.*>/email/headline.txt controllers.ArticleController.renderHeadline(path)
GET /$path<[^/]+/([^/]+/)?live/.*>/email.emailjson controllers.LiveBlogController.renderEmail(path)
GET /$path<[^/]+/([^/]+/)?live/.*>/email.emailtxt controllers.LiveBlogController.renderEmail(path)
GET /$path<[^/]+/([^/]+/)?live/.*> controllers.LiveBlogController.renderArticle(path, page: Option[String], filterKeyEvents: Option[Boolean], topics: Option[String])
# articles, finished liveblogs
GET /*path.json controllers.ArticleController.renderJson(path)
GET /*path/email controllers.ArticleController.renderEmail(path)
GET /*path/email/headline.txt controllers.ArticleController.renderHeadline(path)
GET /*path/email.emailjson controllers.ArticleController.renderEmail(path)
GET /*path/email.emailtxt controllers.ArticleController.renderEmail(path)
# Newspaper pages paths
# gallery format (?)
# e.g. /theobserver/gallery/2013/sep/14/the-10-best-fonts
# article format
# e.g. /theobserver/2015/nov/01/the-big-issue-generation-gap-pensioners-young-people
# multi-part tags
# e.g. /theguardian/2015/nov/04/g2/features
# single-part tag
# e.g. /theguardian/2015/nov/03/mainsection
GET /$publication<(theguardian|theobserver)>/$year<\d\d\d\d>/$month<\w\w\w>/$day<\d\d>/$tail<.+> controllers.PublicationController.publishedOn(publication, year, month, day, tail)
GET /*path controllers.ArticleController.renderArticle(path)