-
Notifications
You must be signed in to change notification settings - Fork 0
/
services.ml
77 lines (64 loc) · 1.55 KB
/
services.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
(* ************************************************************************** *)
(* Project: Karaokanime *)
(* Description: List of services *)
(* Author: db0 ([email protected], http://db0.fr/) *)
(* Latest Version is on GitHub: https://github.com/db0company/Karaokanime *)
(* ************************************************************************** *)
open Eliom_content
open Html5.D
open Eliom_parameter
module Karaokapp =
Eliom_registration.App
(struct
let application_name = "karaokanime"
end)
let main =
Eliom_service.service
~path:[""]
~get_params:unit
()
let search =
Eliom_service.post_service
~fallback:main
~post_params:(string "query")
()
let faq =
Eliom_service.service
~path:["faq"]
~get_params:unit (* todo: question number? *)
()
let contact =
Eliom_service.service
~path:["contact"]
~get_params:unit
()
let upload =
Eliom_service.service
~path:["upload"]
~get_params:unit
()
let tutorial =
Eliom_service.service
~path:["tutorial"]
~get_params:unit
()
let list =
Eliom_service.service
~path:["list";""]
~get_params:unit
()
let list_query =
Eliom_service.service
~path:["list"]
~get_params:(suffix (string "query"))
()
let helpus =
Eliom_service.service
~path:["helpus"]
~get_params:unit
()
let playlist =
Eliom_service.service
~path:["playlist"]
~get_params:unit
()