Plume/plume-api/src/lib.rs

19 lines
306 B
Rust
Raw Normal View History

2018-09-19 16:49:34 +02:00
extern crate canapi;
extern crate serde;
#[macro_use]
extern crate serde_derive;
macro_rules! api {
($url:expr => $ep:ty) => {
impl Endpoint for $ep {
type Id = i32;
fn endpoint() -> &'static str {
$url
}
}
};
}
pub mod posts;