]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/request.c
/ctdl/f/ to get a list of all floors
[citadel.git] / webcit-ng / request.c
index a27a65ac26dc2018cd9fd7fc4bcac66e739841e6..f11865bbd3e9209b7f449ded9ce5405fa2f65454 100644 (file)
@@ -97,6 +97,11 @@ void perform_request(struct http_transaction *h) {
                return;
        }
 
+       if (!strcasecmp(h->url, "/favicon.ico")) {
+               output_static(h);
+               return;
+       }
+
        // Everything below this line is strictly REST URL patterns.
 
        if (strncasecmp(h->url, HKEY("/ctdl/"))) {              // Reject non-REST
@@ -146,6 +151,9 @@ void perform_request(struct http_transaction *h) {
        case 'c':               // /ctdl/c/ == misc Citadel server commands
                ctdl_c(h, c);
                break;
+       case 'f':               // /ctdl/f/ == RESTful path to floors
+               ctdl_f(h, c);
+               break;
        case 'r':               // /ctdl/r/ == RESTful path to rooms
                ctdl_r(h, c);
                break;