CRUD routes typescript