1#[cfg(feature = "backend")]
2#[macro_use]
3extern crate diesel;
4#[cfg(feature = "backend")]
5#[macro_use]
6extern crate diesel_derive_enum;
7#[cfg(feature = "backend")]
8#[macro_use]
9extern crate diesel_migrations;
10extern crate dotenv;
11#[macro_use]
12extern crate juniper;
13
14pub mod account;
15pub mod contribution;
16pub mod contributor;
17#[cfg(feature = "backend")]
18pub mod db;
19pub mod errors;
20pub mod funder;
21pub mod funding;
22#[cfg(feature = "backend")]
23pub mod graphql;
24pub mod imprint;
25pub mod issue;
26pub mod language;
27pub mod price;
28pub mod publication;
29pub mod publisher;
30#[cfg(feature = "backend")]
31mod schema;
32pub mod series;
33pub mod subject;
34pub mod work;
35
36macro_rules! apis {
37 ($($name:ident => $content:expr,)*) => (
38 $(#[allow(missing_docs)] pub const $name: &str = $content;)*
39 )
40}
41
42apis! {
43 API_URL_LOGIN_CREDENTIALS => "login/credentials",
44 API_URL_LOGIN_SESSION => "login/session",
45 API_URL_LOGOUT => "logout",
46}