aboutsummaryrefslogtreecommitdiff
path: root/brep/repository-root
diff options
context:
space:
mode:
Diffstat (limited to 'brep/repository-root')
-rw-r--r--brep/repository-root31
1 files changed, 31 insertions, 0 deletions
diff --git a/brep/repository-root b/brep/repository-root
new file mode 100644
index 0000000..e5fba78
--- /dev/null
+++ b/brep/repository-root
@@ -0,0 +1,31 @@
+// file : brep/repository-root -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BREP_REPOSITORY_ROOT
+#define BREP_REPOSITORY_ROOT
+
+#include <brep/module>
+
+namespace brep
+{
+ class package_search;
+ class repository_details;
+
+ class repository_root: public module
+ {
+ public:
+ repository_root (package_search& ps, repository_details& rd)
+ : package_search_ (ps), repository_details_ (rd) {}
+
+ private:
+ virtual void
+ handle (request&, response&);
+
+ private:
+ package_search& package_search_;
+ repository_details& repository_details_;
+ };
+}
+
+#endif // BREP_REPOSITORY_ROOT