Added CGI frontend structure implementation
[cascardo/atompub.git] / frontend / cgi / cgi.c
index 1209ceb..3c5d72a 100644 (file)
@@ -78,3 +78,12 @@ cgi_serve_request (AtomCtx *ctx)
       fprintf (stdout, "Status: 501 Not Implemented\n\n");
     }
 }
+
+AtomFrontend *
+cgi_frontend (void)
+{
+  AtomFrontend *frontend;
+  frontend = atom_frontend_new ();
+  atom_frontend_map_entries_set (frontend, atom_map_frontend_requests);
+  return frontend;
+}