Spike endpoints

Recreating #113
Change controller to model