diff options
Diffstat (limited to 'src/strusCms.cpp')
-rw-r--r-- | src/strusCms.cpp | 16 |
1 files changed, 16 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 ); } |