Mount the API endpoints

This commit is contained in:
Bat
2018-09-25 20:45:32 +01:00
parent 472da486e9
commit f893056d6d
4 changed files with 22 additions and 3 deletions
+4 -1
View File
@@ -3,6 +3,7 @@
extern crate activitypub;
extern crate atom_syndication;
extern crate canapi;
extern crate chrono;
extern crate colored;
extern crate diesel;
@@ -12,6 +13,7 @@ extern crate gettextrs;
extern crate guid_create;
extern crate heck;
extern crate multipart;
extern crate plume_api;
extern crate plume_common;
extern crate plume_models;
#[macro_use]
@@ -144,7 +146,8 @@ fn main() {
routes::errors::csrf_violation
])
.mount("/api/v1", routes![
api::posts::get
api::posts::get,
api::posts::list
])
.catch(catchers![
routes::errors::not_found,