Created
December 20, 2015 11:37
-
-
Save TheOpenDevProject/453b2ac910dac52ff54f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn get_route(&self,url: &str) -> Vec<&str>{ | |
let mut request_paths = url.split("/"); | |
let paths = request_paths.collect::<Vec<&str>>(); | |
paths | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment