moved server to api folder