extern crate core;
extern crate iron;
extern crate mount;
extern crate rustc_serialize;
extern crate staticfile;
extern crate toml;
extern crate url;

use std::path::Path;
use std::sync::Arc;
use std::sync::Mutex;

use iron::prelude::*;
use mount::Mount;
use staticfile::Static;

mod api;
mod collection;
mod error;
mod vfs;

use api::*;
use collection::*;

fn main() {

    let mut collection = Collection::new();
    collection.load_config(Path::new("Polaris.toml")).unwrap();

    let collection = Arc::new(Mutex::new(collection));

    let mut mount = Mount::new();
    let api_handler = get_api_handler(collection);
    mount.mount("/api/", api_handler);
    mount.mount("/", Static::new(Path::new("web")));

    Iron::new(mount).http("localhost:3000").unwrap();
}

extern crate core;
extern crate iron;
extern crate mount;
extern crate rustc_serialize;
extern crate staticfile;
extern crate toml;
extern crate url;

use std::path::Path;
use std::sync::Arc;
use std::sync::Mutex;

use iron::prelude::*;
use mount::Mount;
use staticfile::Static;

mod api;
mod collection;
mod error;
mod vfs;

use api::*;
use collection::*;

fn main() {

    let mut collection = Collection::new();
    collection.load_config(Path::new("Polaris.toml")).unwrap();

    let collection = Arc::new(Mutex::new(collection));

    let mut mount = Mount::new();
    let api_handler = get_api_handler(collection);
    mount.mount("/api/", api_handler);
    mount.mount("/", Static::new(Path::new("../polaris-web")));

    Iron::new(mount).http("localhost:3000").unwrap();
}

--- 
+++ 
@@ -32,7 +32,7 @@
     let mut mount = Mount::new();
     let api_handler = get_api_handler(collection);
     mount.mount("/api/", api_handler);
-    mount.mount("/", Static::new(Path::new("../polaris-web")));
+    mount.mount("/", Static::new(Path::new("web")));
 
     Iron::new(mount).http("localhost:3000").unwrap();
 }
Revert "Only list music files in browse/flatten"

This reverts commit 172c2bb2fc73f13e67e67840294a0133adeb54e8.
