mirror of
https://code.naskya.net/repos/ndqEd
synced 2025-03-20 15:14:54 +09:00
Add GET routes and handlers for sharer-hosted patches
This commit is contained in:
parent
bb6785de75
commit
02c42029d2
21 changed files with 618 additions and 73 deletions
src/Web
|
@ -827,7 +827,7 @@ data TicketLocal = TicketLocal
|
|||
{ ticketId :: LocalURI
|
||||
, ticketReplies :: LocalURI
|
||||
, ticketParticipants :: LocalURI
|
||||
, ticketTeam :: LocalURI
|
||||
, ticketTeam :: Maybe LocalURI
|
||||
, ticketEvents :: LocalURI
|
||||
, ticketDeps :: LocalURI
|
||||
, ticketReverseDeps :: LocalURI
|
||||
|
@ -851,7 +851,7 @@ parseTicketLocal o = do
|
|||
<$> pure id_
|
||||
<*> withAuthorityO a (o .: "replies")
|
||||
<*> withAuthorityO a (o .: "participants")
|
||||
<*> withAuthorityO a (o .: "team")
|
||||
<*> withAuthorityMaybeO a (o .:? "team")
|
||||
<*> withAuthorityO a (o .: "history")
|
||||
<*> withAuthorityO a (o .: "dependencies")
|
||||
<*> withAuthorityO a (o .: "dependants")
|
||||
|
@ -867,7 +867,7 @@ encodeTicketLocal
|
|||
= "id" .= ObjURI a id_
|
||||
<> "replies" .= ObjURI a replies
|
||||
<> "participants" .= ObjURI a participants
|
||||
<> "team" .= ObjURI a team
|
||||
<> "team" .=? (ObjURI a <$> team)
|
||||
<> "history" .= ObjURI a events
|
||||
<> "dependencies" .= ObjURI a deps
|
||||
<> "dependants" .= ObjURI a rdeps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue