from bottle import route, run
@route('/hello')
def index():
return 'hello world'
@route('/news')
def news():
...
run(port=8080)
What are the most popular solutions like this in C or C++?
edit: here's a link to httplib: https://github.com/yhirose/cpp-httplib (CrowCpp has already been linked by someone else)
The other option is uWs(https://github.com/uNetworking/uWebSockets) but then you have to include the missing parts such as templating system and ORM.