21 lines
428 B
C
Executable file
21 lines
428 B
C
Executable file
void static_index(Request &req, Response &res) {
|
|
P(index) =
|
|
"<html>\n"
|
|
"<head>\n"
|
|
"<title>Some thing isnt supposed to be here</title>\n"
|
|
"</head>\n"
|
|
"<body>\n"
|
|
"<h1>Wuzzup?</h1>\n"
|
|
"</body>\n"
|
|
"</html>";
|
|
|
|
res.set("Content-Type", "text/html");
|
|
res.printP(index);
|
|
}
|
|
|
|
Router staticFileRouter;
|
|
|
|
Router * staticFiles() {
|
|
staticFileRouter.get("/", &static_index);
|
|
return &staticFileRouter;
|
|
}
|