routes.ini 1.5 KB
;/service
routes.service2.type = "regex"
routes.service2.match = "#/service/([\S]*)/([\S]*)#"
routes.service2.route.module = Default
routes.service2.route.controller = Service
routes.service2.route.action = Index
routes.service2.map.1 = method_name
routes.service2.map.2 = class_name

routes.service.type = "regex"
routes.service.match = "#/service/v([0-9]+)/([\S]*)/([\S]*)#"
routes.service.route.module = Default
routes.service.route.controller = Service
routes.service.route.action = Index
routes.service.map.1 = version
routes.service.map.2 = method_name
routes.service.map.3 = class_name


routes.signout.type = "rewrite"
routes.signout.match = "/(signout/|signout|signout.html)$"
routes.signout.route.module = Default
routes.signout.route.controller = Signout
routes.signout.route.action = index

;/api
routes.api.type = "regex"
routes.api.match = "#/api/v([0-9]+)/([\w]*)/([.\w]*)#"
routes.api.route.module = Default
routes.api.route.controller = Api
routes.api.route.action = Index
routes.api.map.1 = version
routes.api.map.2 = method_name
routes.api.map.3 = class_name

;notfound
routes.notfound.type = "rewrite"
routes.notfound.match = "/(error/notfound|notfound/|notfound|notfound.html|404.html)$"
routes.notfound.route.module = Default
routes.notfound.route.controller = Error
routes.notfound.route.action = notfound

routes.signin.type = "rewrite"
routes.signin.match = "/(index/signin|signin/|signin|signin.html)$"
routes.signin.route.module = Default
routes.signin.route.controller = Index
routes.signin.route.action = Signin