0.9.13 • Published 5 years ago

react-router-acl v0.9.13

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

React-router-acl

This repository contains a light library to provide basic control of ACL in react-router. You can create useful application and define complex routes with controlled access.

API

Basic usage

findRouteByPath(path)
findRouteByName(name)
defaultRoute(role)
routerRoutes()
getRoutes()

Basic initialization

initRoutesData(init)

Menu helper

createMenu()

Default roles

defaultRoles

Advanced initialization

getActions()
initActions(actions)
getRouteChecker()
setRouteChecker(routeChecker)
getCurrentUserGetter()
setCurrentUserGetter(getter)
getPushFunction()
setPushFunction(pushFunction)
getMapPropsToRoute()
setMapPropsToRoute(mapPropsToRoute)
getRouteComponent()
setRouteComponent(routeComponent)
getCreateMenuEntry()
setCreateMenuEntry(createMenuEntry)
addRouteData(name, data)
0.9.13

5 years ago

0.9.12

5 years ago

0.9.11

5 years ago

0.9.10

5 years ago

0.9.9

5 years ago

0.9.8

5 years ago

0.9.7

5 years ago

0.9.6

5 years ago

0.9.5

5 years ago

0.9.4

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago