Last change
on this file since 281 was
274,
checked in by hendrikvanantwerpen, 13 years ago
|
- [Client] Moved pages in subtree of rft/, allowing controllers next to them.
- [Client] Created questions page, gives overview and allows adding.
- [Client] Page controllers inherit from _Page, because the previous mechanism w
asn't working.
- [Client] Added new user registration.
- [Server] Changed user passwords to passwordHash/passwordSalt combination.
- [Server] Added simple object marshalling and unmarshalling to preserve types.
- [Server] Added ResearchToolObjectInterface? with static create() method. Implemented for all model classes.
|
File size:
446 bytes
|
Line | |
---|
1 | define(['dojo/_base/xhr','dojo/_base/json','dojo/_base/Deferred','./auth'],function(xhr,json,Deferred){ |
---|
2 | return { |
---|
3 | post: function(path,args) { |
---|
4 | return xhr.post({ |
---|
5 | url: "../server/api.php/"+path, |
---|
6 | handleAs: "json", |
---|
7 | headers: { |
---|
8 | "Content-Type": "application/json" |
---|
9 | }, |
---|
10 | rawBody: json.toJson(args) |
---|
11 | }); |
---|
12 | } |
---|
13 | }; |
---|
14 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.