You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Tufão
Hi, I would like to add an auth-check for routes before they are run. In other platforms you can add these preconditions that are always called before a route is executed. Is that possible in Tufao?
Vinícius dos Santos Oliveira
unread,
Oct 27, 2015, 9:10:26 PM10/27/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
In other platforms you can add these preconditions that are always called before a route is executed. Is that possible in Tufao?
How does this precondition should behave?
The default tufão router[1] check for the return of the handlers and if they return false, another router is tried. In other words, it's a middleware style. You can give your feedback too, so maybe this is taken into account when designing Tufão 2.0.