Mount the API endpoints
This commit is contained in:
+4
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user