Use `Array()` function for route methods handling

Just a small update.