/
init.php
44 lines (34 loc) · 1.3 KB
/
init.php
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Copyright (c) 2013, Oxwall CandyStore
* All rights reserved.
* ATTENTION: This commercial software is intended for use with Oxwall Free Community Software http://www.oxwall.org/
* and is licensed under Oxwall Store Commercial License.
* Full text of this license can be found at http://www.oxwall.org/store/oscl
*/
/**
* /init.php
*
* @author Oxwall CandyStore <plugins@oxcandystore.com>
* @package ow.ow_plugins.ocs_favorites
* @since 1.5.3
*/
OW::getRouter()->addRoute(
new OW_Route('ocsfavorites.admin', '/admin/plugins/ocsfavorites', 'OCSFAVORITES_CTRL_Admin', 'index')
);
OW::getRouter()->addRoute(
new OW_Route('ocsfavorites.list', '/favorites', 'OCSFAVORITES_CTRL_Favorites', 'mylist')
);
OW::getRouter()->addRoute(
new OW_Route('ocsfavorites.added_list', '/favorites/added/me', 'OCSFAVORITES_CTRL_Favorites', 'addedList')
);
OW::getRouter()->addRoute(
new OW_Route('ocsfavorites.mutual_list', '/favorites/mutual', 'OCSFAVORITES_CTRL_Favorites', 'mutualList')
);
OW::getRouter()->addRoute(
new OW_Route('ocsfavorites.add', '/favorites/ajax/add', 'OCSFAVORITES_CTRL_Ajax', 'add')
);
OW::getRouter()->addRoute(
new OW_Route('ocsfavorites.remove', '/favorites/ajax/remove', 'OCSFAVORITES_CTRL_Ajax', 'remove')
);
OCSFAVORITES_CLASS_EventHandler::getInstance()->init();