|
a/Allura/allura/controllers/rest.py |
|
b/Allura/allura/controllers/rest.py |
|
... |
|
... |
279 |
api_key=request.params.get('api_key')))
|
279 |
api_key=request.params.get('api_key')))
|
280 |
return app.api_root, remainder
|
280 |
return app.api_root, remainder
|
281 |
|
281 |
|
282 |
@expose('json:')
|
282 |
@expose('json:')
|
283 |
def index(self, **kw):
|
283 |
def index(self, **kw):
|
284 |
return dict(
|
284 |
return c.project.__json__()
|
285 |
name=c.project.shortname,
|
|
|
286 |
tools=[dict(name=t.tool_name, mount_point=t.options.mount_point, label=t.options.mount_label)
|
|
|
287 |
for t in c.project.app_configs if h.has_access(t, 'read')]
|
|
|
288 |
)
|
|
|