Crow/example.cpp

28 lines
380 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
int main()
{
flask::Flask app;
app.route("/")
.name("hello")
([]{
return "Hello World!";
});
app.route("/about")
([]{
2014-04-01 13:58:52 +00:00
return "About Flask example.";
});
//app.route("/hello/<int>");
//([]{
//return "About Flask example.";
//});
app.port(8080)
.run();
2014-03-30 13:53:56 +00:00
}