plugins - filter:server.create_routes allows you to define API routes as well now