forked from johnwlockwood/tipfy-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
26 lines (18 loc) · 904 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from tipfy.routing import Rule as TipRule
rules =[
TipRule('/tipadmin/<appname>/<modelname>/<entity_key>/delete', \
endpoint='tipadmin/app/model/entity/delete', \
handler='tipadmin.EntityDeleteHandler'),
TipRule('/tipadmin/<appname>/<modelname>/<entity_key>/',
endpoint='tipadmin/app/model/readupdate', \
handler='tipadmin.EntityReadUpdateHandler'),
TipRule('/tipadmin/<appname>/<modelname>/create', \
endpoint='tipadmin/app/model/create', \
handler='tipadmin.EntityReadUpdateHandler'),
TipRule('/tipadmin/<appname>/<modelname>/', \
endpoint='tipadmin/app/model/list', \
handler='tipadmin.EntityListHandler'),
TipRule('/tipadmin/<appname>/', endpoint='tipadmin/app/list', \
handler='tipadmin.ModelListHandler'),
TipRule('/tipadmin/', endpoint='tipadmin', \
handler='tipadmin.AdminHandler')]