Updated code to new session/app/req/res object layout.
This commit is contained in:
parent
0e9738e95d
commit
32d2230ef5
6 changed files with 36 additions and 37 deletions
|
@ -12,12 +12,12 @@ if ( req.data.action=="reload" ) {
|
|||
}
|
||||
|
||||
if ( req.data.action=="index" ) {
|
||||
res.body = this.renderSkinAsString("index");
|
||||
res.data.body = this.renderSkinAsString("index");
|
||||
} else {
|
||||
res.body = this.renderSkinAsString("main");
|
||||
res.data.body = this.renderSkinAsString("main");
|
||||
}
|
||||
|
||||
res.skin = "api";
|
||||
res.title = "Application " + this.name;
|
||||
res.data.title = "Application " + this.name;
|
||||
renderSkin("api");
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue