mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Added /download/snapshots.json
This commit is contained in:
parent
f03ada0f81
commit
511b1c21e9
@ -1,5 +1,6 @@
|
|||||||
module Handler.Download
|
module Handler.Download
|
||||||
( getDownloadR
|
( getDownloadR
|
||||||
|
, getDownloadSnapshotsJsonR
|
||||||
, getDownloadLtsSnapshotsJsonR
|
, getDownloadLtsSnapshotsJsonR
|
||||||
, getGhcMajorVersionR
|
, getGhcMajorVersionR
|
||||||
, getDownloadGhcLinksR
|
, getDownloadGhcLinksR
|
||||||
@ -47,6 +48,9 @@ dropOldMinors (l@(Lts x _ _):rest) =
|
|||||||
where
|
where
|
||||||
sameMinor (Lts y _ _) = x == y
|
sameMinor (Lts y _ _) = x == y
|
||||||
|
|
||||||
|
getDownloadSnapshotsJsonR :: Handler Value
|
||||||
|
getDownloadSnapshotsJsonR = getDownloadLtsSnapshotsJsonR
|
||||||
|
|
||||||
getDownloadLtsSnapshotsJsonR :: Handler Value
|
getDownloadLtsSnapshotsJsonR :: Handler Value
|
||||||
getDownloadLtsSnapshotsJsonR = do
|
getDownloadLtsSnapshotsJsonR = do
|
||||||
(mlatestNightly, ltses) <- runDB $ (,)
|
(mlatestNightly, ltses) <- runDB $ (,)
|
||||||
|
|||||||
@ -60,5 +60,6 @@
|
|||||||
/package-counts PackageCountsR GET
|
/package-counts PackageCountsR GET
|
||||||
|
|
||||||
/download DownloadR GET
|
/download DownloadR GET
|
||||||
|
/download/snapshots.json DownloadSnapshotsJsonR GET
|
||||||
/download/lts-snapshots.json DownloadLtsSnapshotsJsonR GET
|
/download/lts-snapshots.json DownloadLtsSnapshotsJsonR GET
|
||||||
/download/#SupportedArch/#Text DownloadGhcLinksR GET
|
/download/#SupportedArch/#Text DownloadGhcLinksR GET
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user