diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/strusCms.cpp | 16 | ||||
-rw-r--r-- | src/strusCms.hpp | 3 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/strusCms.cpp b/src/strusCms.cpp index da535ef..9c59adf 100644 --- a/src/strusCms.cpp +++ b/src/strusCms.cpp @@ -1,5 +1,21 @@ #include "strusCms.hpp" +#include "content.hpp" + +#include <cppcms/url_dispatcher.h> +#include <cppcms/url_mapper.h> +#include <cppcms/http_response.h> strusCms::strusCms( cppcms::service &srv ) : cppcms::application( srv ) { + dispatcher( ).assign( "", &strusCms::intro, this ); + mapper( ).assign( "" ); + + mapper( ).root( "/strusCms" ); +} + +void strusCms::intro( ) +{ + content::master c; + c.title = "strusCms"; + render( "intro", c ); } diff --git a/src/strusCms.hpp b/src/strusCms.hpp index 6dff31f..6c152d0 100644 --- a/src/strusCms.hpp +++ b/src/strusCms.hpp @@ -6,6 +6,9 @@ class strusCms : public cppcms::application { public: strusCms( cppcms::service &srv ); + + private: + void intro( ); }; #endif |