summaryrefslogtreecommitdiff
path: root/src/strusCms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strusCms.cpp')
-rw-r--r--src/strusCms.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/strusCms.cpp b/src/strusCms.cpp
index 9190cc3..64cc235 100644
--- a/src/strusCms.cpp
+++ b/src/strusCms.cpp
@@ -1,20 +1,19 @@
#include "strusCms.hpp"
-#include "content.hpp"
-#include <cppcms/url_dispatcher.h>
#include <cppcms/url_mapper.h>
#include <cppcms/http_response.h>
#include <cppcms/json.h>
namespace apps {
-strusCms::strusCms( cppcms::service &srv ) : cppcms::application( srv )
+strusCms::strusCms( cppcms::service &srv )
+ : cppcms::application( srv ),
+ intro( *this )
{
locale_name = "en";
script = settings( ).get<std::string>( "strusCms.script" );
- dispatcher( ).assign( "", &strusCms::intro, this );
- mapper( ).assign( "" );
+ add( intro );
mapper( ).root( "/strusCms" );
}
@@ -25,11 +24,4 @@ std::string strusCms::root( std::string l )
return script + "/" + l;
}
-void strusCms::intro( )
-{
- content::intro c;
- c.title = "strusCms";
- render( "intro", c );
-}
-
}