Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assignments:load returns type Response #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 2 additions & 6 deletions admiral-edu/dispatch-typed.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@
(match path
[(cons "assignments" url)
(define page-result (assignments:load session url post))
;; FIXME: this cond should be unnecessary, result should just be list of xexprs
(cond [(response? page-result) page-result]
[else (plain-page
"Assignments"
page-result)])]
page-result]
[(list "send-test-email")
(cond [(send-email (ct-session-uid session)
"Test Email sent by Captain Teach"
Expand All @@ -40,4 +36,4 @@
[else (plain-page "Assignments"
'((p "email not sent; disabled, or bad uid")))]
)]
[else (raise-404-not-found)]))
[else (raise-404-not-found)]))