Fixed API route order to resolve get_port_graphs working

The order for the routes stopped this working because /api/v0/devices/:hostname/:type was snatching the call!