- Timestamp:
- 10/02/09 13:56:46 (9 years ago)
- git-parent:
- Files:
-
- src/noit_filters_rest.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
src/noit_filters_rest.c
r75ee62d rfc257c3 234 234 void 235 235 noit_filters_rest_init() { 236 assert(noit_http_rest_register (236 assert(noit_http_rest_register_auth( 237 237 "GET", "/filters/", "^show(/.*)(?<=/)([^/]+)$", 238 rest_show_filter 238 rest_show_filter, noit_http_rest_client_cert_auth 239 239 ) == 0); 240 assert(noit_http_rest_register (240 assert(noit_http_rest_register_auth( 241 241 "PUT", "/filters/", "^set(/.*)(?<=/)([^/]+)$", 242 rest_set_filter 242 rest_set_filter, noit_http_rest_client_cert_auth 243 243 ) == 0); 244 assert(noit_http_rest_register (244 assert(noit_http_rest_register_auth( 245 245 "DELETE", "/filters/", "^delete(/.*)(?<=/)([^/]+)$", 246 rest_delete_filter 246 rest_delete_filter, noit_http_rest_client_cert_auth 247 247 ) == 0); 248 248 }