zen router library
Project description
zrouter
Zen Router library.
# 定义路由
router = Router('body', __name__, url_prefix='/body')
# 添加REST资源
router.add_resource('/metric', MetricResource)
# 批量添加REST资源
router.add_resources({
'/metric': MetricResource,
'/sport': SportResource,
'/entry': EntryResource,
'/entry/stat': EntryStatResource,
'/punch': PunchResource,
'/punch/stat': PunchStatResource
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zrouter-0.5.0.tar.gz
(3.6 kB
view hashes)