made api and admin routes and moved deploy and create to admin