root: expose categories URL (#2835)
This commit is contained in:
parent
39e48d52e2
commit
7bd6e6b64f
|
@ -726,7 +726,7 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
('informations-editeur', 'informations_editeur'), 'index2',
|
||||
('announces', 'announces_dir'),
|
||||
'accessibility', 'contact', 'help',
|
||||
'myspace', 'services', 'agenda',
|
||||
'myspace', 'services', 'agenda', 'categories',
|
||||
('tmp-upload', 'tmp_upload'), 'json', '__version__',
|
||||
'themes', 'pages', 'payment', 'invoices', 'accesscode']
|
||||
|
||||
|
@ -829,6 +829,9 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
def json(self):
|
||||
return FormsRootDirectory().json()
|
||||
|
||||
def categories(self):
|
||||
return FormsRootDirectory().categories()
|
||||
|
||||
def _q_index [html] (self):
|
||||
if get_request().get_header(str('Accept'), '') == 'application/json':
|
||||
return FormsRootDirectory().json()
|
||||
|
|
Reference in New Issue