add categories
This commit is contained in:
parent
4064fced95
commit
b5fc7e9a8d
6 changed files with 85 additions and 25 deletions
|
|
@ -78,9 +78,13 @@ let log =
|
|||
|
||||
let () = Dream.log "log: %b" log
|
||||
|
||||
let admins =
|
||||
let dirs = Scfg.Query.get_dirs "admin" config in
|
||||
let get_dirs name =
|
||||
let dirs = Scfg.Query.get_dirs name config in
|
||||
List.map
|
||||
(fun dir ->
|
||||
Result.fold ~error:failwith ~ok:Fun.id (Scfg.Query.get_param 0 dir) )
|
||||
dirs
|
||||
|
||||
let admins = get_dirs "admin"
|
||||
|
||||
let categories = get_dirs "category"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue