Crow/example.cpp

22 lines
256 B
C++
Raw Normal View History

2014-03-30 13:53:56 +00:00
#include "flask.h"
#include <iostream>
2014-03-30 13:53:56 +00:00
flask::Flask app;
int main()
{
app.route("/",
[]{
return "Hello World!";
});
2014-04-01 13:58:52 +00:00
app.route("/about",
[]{
return "About Flask example.";
});
app.port(8080)
.run();
2014-03-30 13:53:56 +00:00
}