fix(api): use new express syntax for apis and secure socket