rewrite ^/last-synced-block /rpc/get_rep_last_synced_block break;
# endpoint for get /last-synced-block

rewrite ^/accounts/([^/]+)/reputation /rpc/get_account_reputation?account-name=$1 break;
# endpoint for get /accounts/{account-name}/reputation

rewrite ^/$ / break;
# endpoint for openapi spec itself

rewrite ^/(.*)$ /rpc/$1 break;
# default endpoint for everything else
