adjusted form action to reflect reverse-routed (/api/) section of URI