Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
312bd62a
Commit
312bd62a
authored
Mar 23, 2014
by
Stephane Glondu
Browse files
All services are relative to path defined in Web_main
parent
b4bce434
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/web/web_site.ml
View file @
312bd62a
...
...
@@ -38,6 +38,8 @@ module Make (C : CONFIG) : SITE_SERVICES = struct
open
Eliom_service
open
Eliom_registration
let
make_path
x
=
C
.
path
@
x
module
Auth
=
Auth_common
.
Make
(
C
)
let
main_election
=
ref
None
...
...
@@ -58,17 +60,17 @@ module Make (C : CONFIG) : SITE_SERVICES = struct
open
Eliom_parameter
let
home
=
service
~
path
:
[]
~
path
:
(
make_path
[
""
])
~
get_params
:
unit
()
let
source_code
=
service
~
path
:
[
"belenios.tar.gz"
]
~
path
:
(
make_path
[
"belenios.tar.gz"
]
)
~
get_params
:
unit
()
let
get_randomness
=
service
~
path
:
[
"get-randomness"
]
~
path
:
(
make_path
[
"get-randomness"
]
)
~
get_params
:
unit
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment