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
|
||||
( getDownloadR
|
||||
, getDownloadSnapshotsJsonR
|
||||
, getDownloadLtsSnapshotsJsonR
|
||||
, getGhcMajorVersionR
|
||||
, getDownloadGhcLinksR
|
||||
@ -47,6 +48,9 @@ dropOldMinors (l@(Lts x _ _):rest) =
|
||||
where
|
||||
sameMinor (Lts y _ _) = x == y
|
||||
|
||||
getDownloadSnapshotsJsonR :: Handler Value
|
||||
getDownloadSnapshotsJsonR = getDownloadLtsSnapshotsJsonR
|
||||
|
||||
getDownloadLtsSnapshotsJsonR :: Handler Value
|
||||
getDownloadLtsSnapshotsJsonR = do
|
||||
(mlatestNightly, ltses) <- runDB $ (,)
|
||||
|
||||
@ -60,5 +60,6 @@
|
||||
/package-counts PackageCountsR GET
|
||||
|
||||
/download DownloadR GET
|
||||
/download/snapshots.json DownloadSnapshotsJsonR GET
|
||||
/download/lts-snapshots.json DownloadLtsSnapshotsJsonR GET
|
||||
/download/#SupportedArch/#Text DownloadGhcLinksR GET
|
||||
|
||||
Loading…
Reference in New Issue
Block a user