total.js updates - route authorize

77 views
Skip to first unread message

flienteen

unread,
Mar 4, 2014, 5:47:24 PM3/4/14
to tot...@googlegroups.com
Hi,
after this update, my route aren't working anymore, ex:
framework.route('/new', new, ['authorize', 'xhr', 'post']);
withoud authorize flag, it works.


Also, i need to change the order of declaration, becouse this code isn't working anymore. 
framework.route('/', home);
framework
.route('/', homeLogged, ['authorize']); //now must be declared first

Am i missing something?

Peter Širka

unread,
Mar 5, 2014, 1:51:17 AM3/5/14
to tot...@googlegroups.com
Hi,
it's interesting. Do you have some example for test? I tested flag and it works.
E.g.: https://github.com/totaljs/examples/tree/master/authorization

Thanks.

flienteen

unread,
Mar 5, 2014, 7:15:09 AM3/5/14
to tot...@googlegroups.com

Peter Širka

unread,
Mar 5, 2014, 1:34:54 PM3/5/14
to
Hello,
thanks, there was a bug. I published a new version, sorry and many thanks :-)


or

npm install total.js
Reply all
Reply to author
Forward
0 new messages