Added API routes
Fixed syntax mistakes from generation

Comma separated the attributes when using "generate scaffold" caused
rogue commas to appear in the file