|
1 | 1 | <?php
|
2 | 2 |
|
3 | 3 |
|
4 |
| -Server::create(WEBROOT.'api', 'RestApi\Auth') //base entry points `/admin` |
| 4 | +Server::create(WEBROOT.'api/v1', 'RestApi\Auth') //base entry points `/admin` |
5 | 5 | ->setDebugMode(true) //prints the debug trace, line number and file if a exception has been thrown.
|
6 | 6 |
|
7 | 7 | /**
|
8 |
| -* @api {get} /api/session get current session |
| 8 | +* @api {get} /api/v1/session get current session |
9 | 9 | * @apiName get session
|
10 | 10 | * @apiGroup Auth
|
11 | 11 | *
|
12 | 12 | * @apiParam (cookie) {String} HOMERSESSID cookie session id
|
13 | 13 | *
|
14 | 14 | * @apiExample Example usage:
|
15 | 15 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X GET \
|
16 |
| -* "http://localhost/api/session" |
| 16 | +* "http://localhost/api/v1/session" |
17 | 17 | *
|
18 | 18 | * @apiSuccessTitle (700) Response
|
19 | 19 | *
|
|
50 | 50 | *
|
51 | 51 | **/
|
52 | 52 |
|
53 |
| - ->addGetRoute('session', 'getSession') // => /api/session |
| 53 | + ->addGetRoute('session', 'getSession') // => /api/v1/session |
54 | 54 |
|
55 | 55 | /**
|
56 |
| -* @api {post} /api/session create a session |
| 56 | +* @api {post} /api/v1/session create a session |
57 | 57 | * @apiName create session
|
58 | 58 | * @apiGroup Auth
|
59 | 59 | *
|
|
62 | 62 | * @apiExample Example usage:
|
63 | 63 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" \
|
64 | 64 | * -d '{"username":"admin","password":"test123"}' \
|
65 |
| -* http://localhost/api/session |
| 65 | +* http://localhost/api/v1/session |
66 | 66 | *
|
67 | 67 | * @apiParam {String} username Login for session creation.
|
68 | 68 | * @apiParam {String} password Password for session creation.
|
|
115 | 115 |
|
116 | 116 |
|
117 | 117 |
|
118 |
| - ->addPostRoute('session', 'doSession') // => /api/session |
| 118 | + ->addPostRoute('session', 'doSession') // => /api/v1/session |
119 | 119 | /*
|
120 |
| -* @api {delete} /api/session delete current session |
| 120 | +* @api {delete} /api/v1/session delete current session |
121 | 121 | * @apiName delete session
|
122 | 122 | * @apiGroup Auth
|
123 | 123 | *
|
124 | 124 | * @apiParam (cookie) {String} HOMERSESSID cookie session id
|
125 | 125 | *
|
126 | 126 | * @apiExample Example usage:
|
127 | 127 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X DELETE \
|
128 |
| -* "http://localhost/api/session" |
| 128 | +* "http://localhost/api/v1/session" |
129 | 129 | *
|
130 | 130 | * @apiSuccessTitle (700) Response
|
131 | 131 | *
|
|
158 | 158 |
|
159 | 159 | ->addDeleteRoute('session', 'doLogout') // => /admin/logout
|
160 | 160 | /**
|
161 |
| -* @api {get} /api/logout delete current session |
| 161 | +* @api {get} /api/v1/logout delete current session |
162 | 162 | * @apiName logout of session
|
163 | 163 | * @apiGroup Auth
|
164 | 164 | *
|
165 | 165 | * @apiParam (cookie) {String} HOMERSESSID cookie session id
|
166 | 166 | *
|
167 | 167 | * @apiExample Example usage:
|
168 | 168 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X GET \
|
169 |
| -* "http://localhost/api/logout" |
| 169 | +* "http://localhost/api/v1/logout" |
170 | 170 | *
|
171 | 171 | * @apiSuccessTitle (700) Response
|
172 | 172 | *
|
|
201 | 201 |
|
202 | 202 | ->addSubController('search', 'RestApi\Search') //adds a new sub entry point 'tools' => admin/tools
|
203 | 203 | /**
|
204 |
| -* @api {post} /api/search/data do search |
| 204 | +* @api {post} /api/v1/search/data do search |
205 | 205 | * @apiName search data
|
206 | 206 | * @apiGroup Search
|
207 | 207 | *
|
|
210 | 210 | * @apiExample Example usage:
|
211 | 211 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" \
|
212 | 212 | * -d '{"param":{"transaction":{"call":true},"limit":200,"search":{"ruri_user":"108"},"node":[{"id":"1","name":"homer01"}]},"timestamp":{"from":1433521859738,"to":1433529659738}}' \
|
213 |
| -* http://localhost/api/search/data |
| 213 | +* http://localhost/api/v1/search/data |
214 | 214 | *
|
215 | 215 | * @apiParam {String[]} timestamp array
|
216 | 216 | * @apiParam {Number} timestamp.from search from this time
|
|
372 | 372 | **/
|
373 | 373 |
|
374 | 374 |
|
375 |
| - ->addPostRoute('data', 'doSearchData') // => /api/session |
| 375 | + ->addPostRoute('data', 'doSearchData') // => /api/v1/session |
376 | 376 | /**
|
377 |
| -* @api {post} /api/search/method method by id |
| 377 | +* @api {post} /api/v1/search/method method by id |
378 | 378 | * @apiName search method
|
379 | 379 | * @apiGroup Search
|
380 | 380 | *
|
|
383 | 383 | * @apiExample Example usage:
|
384 | 384 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" \
|
385 | 385 | * -d '{"timestamp":{"from":1433529542283,"to":1433529542283},"param":{"search":{"id":14588,"callid":"426690302"},"location":{"node":"single"},"transaction":{"call":true,"registration":false,"rest":false}}}' \
|
386 |
| -* http://localhost/api/search/method |
| 386 | +* http://localhost/api/v1/search/method |
387 | 387 | *
|
388 | 388 | * @apiParam {String[]} timestamp array
|
389 | 389 | * @apiParam {Number} timestamp.from search from this time
|
|
521 | 521 | **/
|
522 | 522 |
|
523 | 523 |
|
524 |
| - ->addPostRoute('method', 'doSearchMethod') // => /api/session |
| 524 | + ->addPostRoute('method', 'doSearchMethod') // => /api/v1/session |
525 | 525 | /**
|
526 |
| -* @api {post} /api/search/message message by callid |
| 526 | +* @api {post} /api/v1/search/message message by callid |
527 | 527 | * @apiName search message(s)
|
528 | 528 | * @apiGroup Search
|
529 | 529 | *
|
|
532 | 532 | * @apiExample Example usage:
|
533 | 533 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" \
|
534 | 534 | * -d '{"timestamp":{"from":1433529542283,"to":1433529542283},"param":{"search":{"id":14588,"callid":"426690302"},"location":{"node":"single"},"transaction":{"call":true,"registration":false,"rest":false}}}' \
|
535 |
| -* http://localhost/api/search/message |
| 535 | +* http://localhost/api/v1/search/message |
536 | 536 | *
|
537 | 537 | * @apiParam {String[]} timestamp array
|
538 | 538 | * @apiParam {Number} timestamp.from search from this time
|
|
670 | 670 | * }
|
671 | 671 | **/
|
672 | 672 |
|
673 |
| - ->addPostRoute('message', 'doSearchMessage') // => /api/session |
| 673 | + ->addPostRoute('message', 'doSearchMessage') // => /api/v1/session |
674 | 674 | /**
|
675 |
| -* @api {post} /api/search/transaction search trasaction |
| 675 | +* @api {post} /api/v1/search/transaction search trasaction |
676 | 676 | * @apiName search transaction(s)
|
677 | 677 | * @apiGroup Search
|
678 | 678 | *
|
|
681 | 681 | * @apiExample Example usage:
|
682 | 682 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" \
|
683 | 683 | * -d '{"timestamp":{"from":1433529545834,"to":1433529659738},"param":{"search":{"id":14600,"callid":["[email protected]"]},"location":{"node":[]},"transaction":{"call":true,"registration":false,"rest":false}}}' \
|
684 |
| -* http://localhost/api/search/transaction |
| 684 | +* http://localhost/api/v1/search/transaction |
685 | 685 | *
|
686 | 686 | * @apiParam {String[]} timestamp array
|
687 | 687 | * @apiParam {Number} timestamp.from search from this time
|
|
800 | 800 | * }
|
801 | 801 | **/
|
802 | 802 |
|
803 |
| - ->addPostRoute('transaction', 'doSearchTransaction') // => /api/session |
804 |
| - ->addPostRoute('sharelink', 'doShareLink') // => /api/session |
805 |
| - ->addPostRoute('share/transaction', 'doSearchShareTransaction') // => /api/session |
806 |
| - ->addPostRoute('share/export/pcap', 'doPcapExportById') // => /api/session |
807 |
| - ->addPostRoute('share/export/text', 'doTextExportById') // => /api/session |
| 803 | + ->addPostRoute('transaction', 'doSearchTransaction') // => /api/v1/session |
| 804 | + ->addPostRoute('sharelink', 'doShareLink') // => /api/v1/session |
| 805 | + ->addPostRoute('share/transaction', 'doSearchShareTransaction') // => /api/v1/session |
| 806 | + ->addPostRoute('share/export/pcap', 'doPcapExportById') // => /api/v1/session |
| 807 | + ->addPostRoute('share/export/text', 'doTextExportById') // => /api/v1/session |
808 | 808 | /**
|
809 |
| -* @api {post} /api/search/export/pcap pcap export |
| 809 | +* @api {post} /api/v1/search/export/pcap pcap export |
810 | 810 | * @apiName pcap of transaction
|
811 | 811 | * @apiGroup Search
|
812 | 812 | *
|
|
815 | 815 | * @apiExample Example usage:
|
816 | 816 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" \
|
817 | 817 | * -d '{"timestamp":{"from":1433529545834,"to":1433529659738},"param":{"search":{"id":14600,"callid":["[email protected]"]},"location":{"node":[]},"transaction":{"call":true,"registration":false,"rest":false}}}' \
|
818 |
| -* http://localhost/api/search/export/pcap |
| 818 | +* http://localhost/api/v1/search/export/pcap |
819 | 819 | *
|
820 | 820 | * @apiParam {String[]} timestamp array
|
821 | 821 | * @apiParam {Number} timestamp.from search from this time
|
|
855 | 855 | **/
|
856 | 856 |
|
857 | 857 |
|
858 |
| - ->addPostRoute('export/pcap', 'doPcapExport') // => /api/session |
| 858 | + ->addPostRoute('export/pcap', 'doPcapExport') // => /api/v1/session |
859 | 859 | /**
|
860 |
| -* @api {post} /api/search/export/text text export |
| 860 | +* @api {post} /api/v1/search/export/text text export |
861 | 861 | * @apiName text of transaction
|
862 | 862 | * @apiGroup Search
|
863 | 863 | *
|
|
866 | 866 | * @apiExample Example usage:
|
867 | 867 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" \
|
868 | 868 | * -d '{"timestamp":{"from":1433529545834,"to":1433529659738},"param":{"search":{"id":14600,"callid":["[email protected]"]},"location":{"node":[]},"transaction":{"call":true,"registration":false,"rest":false}}}' \
|
869 |
| -* http://localhost/api/search/export/text |
| 869 | +* http://localhost/api/v1/search/export/text |
870 | 870 | *
|
871 | 871 | * @apiParam {String[]} timestamp array
|
872 | 872 | * @apiParam {Number} timestamp.from search from this time
|
|
907 | 907 |
|
908 | 908 |
|
909 | 909 |
|
910 |
| - ->addPostRoute('export/text', 'doTextExport') // => /api/session |
| 910 | + ->addPostRoute('export/text', 'doTextExport') // => /api/v1/session |
911 | 911 | /**
|
912 |
| -* @api {post} /api/search/export/data/pcap pcap export of messages |
| 912 | +* @api {post} /api/v1/search/export/data/pcap pcap export of messages |
913 | 913 | * @apiName pcap export of messages
|
914 | 914 | * @apiGroup Search
|
915 | 915 | *
|
|
918 | 918 | * @apiExample Example usage:
|
919 | 919 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" \
|
920 | 920 | * -d '{"param":{"transaction":{"call":true},"limit":200,"search":{"ruri_user":"108"},"node":[{"id":"1","name":"homer01"}]},"timestamp":{"from":1433521859738,"to":1433529659738}}' \
|
921 |
| -* http://localhost/api/search/export/data/pcap |
| 921 | +* http://localhost/api/v1/search/export/data/pcap |
922 | 922 | *
|
923 | 923 | * @apiParam {String[]} timestamp array
|
924 | 924 | * @apiParam {Number} timestamp.from search from this time
|
|
980 | 980 | * }
|
981 | 981 | **/
|
982 | 982 |
|
983 |
| - ->addPostRoute('export/data/pcap', 'doPcapExportData') // => /api/session |
| 983 | + ->addPostRoute('export/data/pcap', 'doPcapExportData') // => /api/v1/session |
984 | 984 | /**
|
985 |
| -* @api {post} /api/search/export/data/text text export of messages |
| 985 | +* @api {post} /api/v1/search/export/data/text text export of messages |
986 | 986 | * @apiName text export of messages
|
987 | 987 | * @apiGroup Search
|
988 | 988 | *
|
|
991 | 991 | * @apiExample Example usage:
|
992 | 992 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" \
|
993 | 993 | * -d '{"param":{"transaction":{"call":true},"limit":200,"search":{"ruri_user":"108"},"node":[{"id":"1","name":"homer01"}]},"timestamp":{"from":1433521859738,"to":1433529659738}}' \
|
994 |
| -* http://localhost/api/search/export/data/text |
| 994 | +* http://localhost/api/v1/search/export/data/text |
995 | 995 | *
|
996 | 996 | * @apiParam {String[]} timestamp array
|
997 | 997 | * @apiParam {Number} timestamp.from search from this time
|
|
1053 | 1053 | * }
|
1054 | 1054 | **/
|
1055 | 1055 |
|
1056 |
| - ->addPostRoute('export/data/text', 'doTextExportData') // => /api/session |
| 1056 | + ->addPostRoute('export/data/text', 'doTextExportData') // => /api/v1/session |
1057 | 1057 | /**
|
1058 |
| -* @api {get} /api/search/data get search |
| 1058 | +* @api {get} /api/v1/search/data get search |
1059 | 1059 | * @apiName get search data
|
1060 | 1060 | * @apiGroup Search
|
1061 | 1061 | *
|
|
1064 | 1064 | * @apiExample Example usage:
|
1065 | 1065 | * curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X GET -H "Content-Type: application/json" \
|
1066 | 1066 | * -d '{"param":{"transaction":{"call":true},"limit":200,"node":[{"id":"1","name":"homer01"}]},"timestamp":{"from":1433521859738,"to":1433529659738}}' \
|
1067 |
| -* http://localhost/api/search/data |
| 1067 | +* http://localhost/api/v1/search/data |
1068 | 1068 | *
|
1069 | 1069 | * @apiParam {String[]} timestamp array
|
1070 | 1070 | * @apiParam {Number} timestamp.from search from this time
|
|
1198 | 1198 | * }
|
1199 | 1199 | **/
|
1200 | 1200 |
|
1201 |
| - ->addGetRoute('data', 'getSearchData') // => /api/session |
| 1201 | + ->addGetRoute('data', 'getSearchData') // => /api/v1/session |
1202 | 1202 | ->done()
|
1203 | 1203 |
|
1204 | 1204 | /* statistic */
|
1205 | 1205 | ->addSubController('statistic', 'RestApi\Statistic') //adds a new sub entry point 'tools' => admin/tools
|
1206 |
| - ->addGetRoute('method', 'getStatisticMethod') // => /api/session |
1207 |
| - ->addPostRoute('method', 'doStatisticMethod') // => /api/session |
1208 |
| - ->addPostRoute('data', 'doStatisticData') // => /api/session |
1209 |
| - ->addGetRoute('data', 'getStatisticData') // => /api/session |
1210 |
| - ->addPostRoute('ip', 'doStatisticIP') // => /api/session |
1211 |
| - ->addGetRoute('ip', 'getStatisticIP') // => /api/session |
1212 |
| - ->addPostRoute('useragent', 'doStatisticUserAgent') // => /api/session |
1213 |
| - ->addGetRoute('useragent', 'getStatisticUserAgent') // => /api/session |
| 1206 | + ->addGetRoute('method', 'getStatisticMethod') // => /api/v1/session |
| 1207 | + ->addPostRoute('method', 'doStatisticMethod') // => /api/v1/session |
| 1208 | + ->addPostRoute('data', 'doStatisticData') // => /api/v1/session |
| 1209 | + ->addGetRoute('data', 'getStatisticData') // => /api/v1/session |
| 1210 | + ->addPostRoute('ip', 'doStatisticIP') // => /api/v1/session |
| 1211 | + ->addGetRoute('ip', 'getStatisticIP') // => /api/v1/session |
| 1212 | + ->addPostRoute('useragent', 'doStatisticUserAgent') // => /api/v1/session |
| 1213 | + ->addGetRoute('useragent', 'getStatisticUserAgent') // => /api/v1/session |
1214 | 1214 | ->done()
|
1215 | 1215 |
|
1216 | 1216 | /* alarm */
|
1217 | 1217 | ->addSubController('alarm', 'RestApi\Alarm') //adds a new sub entry point 'tools' => admin/tools
|
1218 |
| - ->addGetRoute('config/get', 'getAlarmConfig') // => /api/session |
1219 |
| - ->addPostRoute('config/new', 'doNewAlarmConfig') // => /api/session |
1220 |
| - ->addPostRoute('config/edit', 'doEditAlarmConfig') // => /api/session |
| 1218 | + ->addGetRoute('config/get', 'getAlarmConfig') // => /api/v1/session |
| 1219 | + ->addPostRoute('config/new', 'doNewAlarmConfig') // => /api/v1/session |
| 1220 | + ->addPostRoute('config/edit', 'doEditAlarmConfig') // => /api/v1/session |
1221 | 1221 | ->addDeleteRoute('config/delete/([0-9]+)', 'deleteAlarmConfig')
|
1222 |
| - ->addGetRoute('list/get', 'getAlarmList') // => /api/session |
1223 |
| - ->addPostRoute('list/edit', 'doEditAlarmList') // => /api/session |
1224 |
| - ->addGetRoute('method', 'getAlarmMethod') // => /api/session |
1225 |
| - ->addPostRoute('method', 'doAlarmMethod') // => /api/session |
1226 |
| - ->addPostRoute('ip', 'doAlarmIP') // => /api/session |
1227 |
| - ->addGetRoute('ip', 'getAlarmIP') // => /api/session |
1228 |
| - ->addPostRoute('useragent', 'doAlarmUserAgent') // => /api/session |
1229 |
| - ->addGetRoute('useragent', 'getAlarmUserAgent') // => /api/session |
| 1222 | + ->addGetRoute('list/get', 'getAlarmList') // => /api/v1/session |
| 1223 | + ->addPostRoute('list/edit', 'doEditAlarmList') // => /api/v1/session |
| 1224 | + ->addGetRoute('method', 'getAlarmMethod') // => /api/v1/session |
| 1225 | + ->addPostRoute('method', 'doAlarmMethod') // => /api/v1/session |
| 1226 | + ->addPostRoute('ip', 'doAlarmIP') // => /api/v1/session |
| 1227 | + ->addGetRoute('ip', 'getAlarmIP') // => /api/v1/session |
| 1228 | + ->addPostRoute('useragent', 'doAlarmUserAgent') // => /api/v1/session |
| 1229 | + ->addGetRoute('useragent', 'getAlarmUserAgent') // => /api/v1/session |
1230 | 1230 | ->done()
|
1231 | 1231 |
|
1232 | 1232 | /* report */
|
1233 | 1233 | ->addSubController('report', 'RestApi\Report') //adds a new sub entry point 'tools' => admin/tools
|
1234 |
| - ->addPostRoute('rtcp', 'doRTCPReport') // => /api/session |
1235 |
| - ->addPostRoute('log', 'doLogReport') // => /api/session |
1236 |
| - ->addPostRoute('quality/([A-Za-z]+)', 'doQualityReport') // => /api/session |
| 1234 | + ->addPostRoute('rtcp', 'doRTCPReport') // => /api/v1/session |
| 1235 | + ->addPostRoute('log', 'doLogReport') // => /api/v1/session |
| 1236 | + ->addPostRoute('quality/([A-Za-z]+)', 'doQualityReport') // => /api/v1/session |
1237 | 1237 | ->done()
|
1238 | 1238 |
|
1239 | 1239 | /* admin */
|
1240 | 1240 | ->addSubController('admin', 'RestApi\Admin') //adds a new sub entry point 'tools' => admin/tools
|
1241 |
| - ->addGetRoute('user/get', 'getUser') // => /api/session |
1242 |
| - ->addGetRoute('user/get/([0-9A-Za-z_])', 'getUserById') // => /api/session |
1243 |
| - ->addPostRoute('user/new', 'doNewUser') // => /api/session |
1244 |
| - ->addPostRoute('user/edit', 'doEditUser') // => /api/session |
| 1241 | + ->addGetRoute('user/get', 'getUser') // => /api/v1/session |
| 1242 | + ->addGetRoute('user/get/([0-9A-Za-z_])', 'getUserById') // => /api/v1/session |
| 1243 | + ->addPostRoute('user/new', 'doNewUser') // => /api/v1/session |
| 1244 | + ->addPostRoute('user/edit', 'doEditUser') // => /api/v1/session |
1245 | 1245 | ->addDeleteRoute('user/delete/([0-9]+)', 'deleteUser')
|
1246 | 1246 |
|
1247 | 1247 | /* alias */
|
1248 |
| - ->addGetRoute('alias/get', 'getAlias') // => /api/session |
1249 |
| - ->addGetRoute('user/get/([0-9A-Za-z_])', 'getAliasById') // => /api/session |
1250 |
| - ->addPostRoute('alias/new', 'doNewAlias') // => /api/session |
1251 |
| - ->addPostRoute('alias/edit', 'doEditAlias') // => /api/session |
| 1248 | + ->addGetRoute('alias/get', 'getAlias') // => /api/v1/session |
| 1249 | + ->addGetRoute('user/get/([0-9A-Za-z_])', 'getAliasById') // => /api/v1/session |
| 1250 | + ->addPostRoute('alias/new', 'doNewAlias') // => /api/v1/session |
| 1251 | + ->addPostRoute('alias/edit', 'doEditAlias') // => /api/v1/session |
1252 | 1252 | ->addDeleteRoute('user/delete/([0-9]+)', 'deleteAlias')
|
1253 | 1253 | /* nodes */
|
1254 |
| - ->addGetRoute('node/get', 'getNode') // => /api/session |
1255 |
| - ->addGetRoute('node/get/([0-9A-Za-z_])', 'getNodeById') // => /api/session |
1256 |
| - ->addPostRoute('node/new', 'doNewNode') // => /api/session |
1257 |
| - ->addPostRoute('node/edit', 'doEditNode') // => /api/session |
| 1254 | + ->addGetRoute('node/get', 'getNode') // => /api/v1/session |
| 1255 | + ->addGetRoute('node/get/([0-9A-Za-z_])', 'getNodeById') // => /api/v1/session |
| 1256 | + ->addPostRoute('node/new', 'doNewNode') // => /api/v1/session |
| 1257 | + ->addPostRoute('node/edit', 'doEditNode') // => /api/v1/session |
1258 | 1258 | ->addDeleteRoute('node/delete/([0-9]+)', 'deleteNode')
|
1259 | 1259 | /* alarms */
|
1260 |
| - ->addGetRoute('useragent', 'getAlarmUserAgent') // => /api/session |
| 1260 | + ->addGetRoute('useragent', 'getAlarmUserAgent') // => /api/v1/session |
1261 | 1261 | ->done()
|
1262 | 1262 |
|
1263 | 1263 |
|
|
0 commit comments