server api apply express resource