13 lines
399 B
Python
13 lines
399 B
Python
#!/usr/bin/env python3
|
||
from halfapi.conf import DB_NAME
|
||
|
||
# DB
|
||
from half_orm.model import Model
|
||
db = Model(DB_NAME)
|
||
Domain = db.get_relation_class('api.domain')
|
||
APIRouter = db.get_relation_class('api.router')
|
||
APIRoute = db.get_relation_class('api.route')
|
||
AclFunction = db.get_relation_class('api.acl_function')
|
||
Acl = db.get_relation_class('api.acl')
|
||
RouteACL = db.get_relation_class('api.view.acl')
|