JS Reverse

Implemented JS Reverse

How to use

Wrap all your Ajax Requests like this

$.ajax({url, .... }) === > 


reverse('librehatti.catalog.views.index', function(data) {
$ajax({data, ..... });
});

Reverse decodes 'librehatti.catalog.views.index' == > /catalog/index/ and puts it in data var which then can be used in AJAX Requests.