~ubuntu-branches/ubuntu/oneiric/ocsigen/oneiric

« back to all changes in this revision

Viewing changes to examples/miniforum/v2/services.ml

  • Committer: Bazaar Package Importer
  • Author(s): Stephane Glondu
  • Date: 2009-07-02 10:02:08 UTC
  • mfrom: (1.1.9 upstream) (4.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090702100208-n158b1sqwzn0asil
Tags: 1.2.0-2
Fix build on non-native architectures

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
open Eliom_services
 
2
open Eliom_parameters
 
3
 
 
4
 
 
5
let mainpage = new_service ~path:[] ~get_params:unit ()
 
6
let msgpage = new_service  ~path:[] ~get_params:(int "n") ()
 
7
let addmsgpage = 
 
8
  new_post_service ~fallback:mainpage ~post_params:(string "msg") ()
 
9
let newmsgpage = new_service ~path:["newmessage"] ~get_params:unit ()
 
10
 
 
11
let connect_action = 
 
12
  new_post_coservice' ~name:"connect" ~post_params:(string "login") ()
 
13
let disconnect_action = 
 
14
  new_post_coservice' ~name:"disconnect" ~post_params:unit ()
 
15