Remove path prefix on reverse_proxy

You can use handle_path for this:

handle_path /api/* {
	reverse_proxy localhost:9000
}