BartWillems / YoukeBox-rust

The official YoukeBox-Rust repository
GNU General Public License v3.0
6 stars 0 forks source link

Refactor the project #2

Open BartWillems opened 6 years ago

BartWillems commented 6 years ago

Currently everything is in the root of the project, I would like something like this:

Also, more tests maybe. I don't know how to test properly with the database.

BartWillems commented 6 years ago

I should use modules in stead of Impl.

pub mod Foo {
    #[get("/foo/bar")]
    pub fn bar() -> String {
        String::from("Something something foobar")
    }
}