change db: merge subject+latlng in thread_info; add catalog; fix get_markers hidding errors

This commit is contained in:
Swrup 2022-02-21 00:19:35 +01:00
parent 419aaa7955
commit 258175565e
9 changed files with 138 additions and 91 deletions

View file

@ -64,6 +64,12 @@ let login_post request =
| `Wrong_session _ | `Expired _ | `Wrong_content_type ->
Dream.empty `Bad_Request
let catalog request =
let catalog_content =
Result.fold ~ok:Fun.id ~error:Fun.id (Pp_babillard.catalog_content ())
in
render_unsafe (Catalog_page.f catalog_content) request
let user request =
render_unsafe (Result.fold ~ok:Fun.id ~error:Fun.id (User.list ())) request
@ -266,6 +272,7 @@ let routes =
; get_ "/user/:user/avatar" avatar_image
; get_ "/thread/:thread_id" thread_get
; post "/thread/:thread_id" reply_post
; get_ "/catalog" catalog
]
@
if App.open_registration then