mirror of https://github.com/voidlizard/hbs2
wip, wtf
This commit is contained in:
parent
f8249b4000
commit
a5a50defc7
|
@ -221,6 +221,9 @@ runDashboardWeb wo = do
|
||||||
|
|
||||||
get "/repo/:lww/refs" do
|
get "/repo/:lww/refs" do
|
||||||
lwws' <- captureParam @String "lww" <&> fromStringMay @(LWWRefKey HBS2Basic)
|
lwws' <- captureParam @String "lww" <&> fromStringMay @(LWWRefKey HBS2Basic)
|
||||||
|
|
||||||
|
setHeader "HX-Push-Url" [qc|/repo/{show $ pretty lwws'}|]
|
||||||
|
|
||||||
flip runContT pure do
|
flip runContT pure do
|
||||||
lww <- lwws' & orFall (status status404)
|
lww <- lwws' & orFall (status status404)
|
||||||
refs <- lift $ gitShowRefs lww
|
refs <- lift $ gitShowRefs lww
|
||||||
|
|
Loading…
Reference in New Issue