21 lines
807 B
Rust
Raw Normal View History

2021-08-20 21:09:21 +08:00
use lazy_static::lazy_static;
pub const HOST: &'static str = "http://localhost:8000";
2021-08-20 21:09:21 +08:00
2021-09-01 16:08:32 +08:00
pub const HEADER_TOKEN: &'static str = "token";
2021-08-20 21:09:21 +08:00
lazy_static! {
2021-08-23 18:39:10 +08:00
pub static ref SIGN_UP_URL: String = format!("{}/api/register", HOST);
2021-08-23 23:02:42 +08:00
pub static ref SIGN_IN_URL: String = format!("{}/api/auth", HOST);
2021-08-31 23:01:46 +08:00
pub static ref SIGN_OUT_URL: String = format!("{}/api/auth", HOST);
2021-09-01 16:37:46 +08:00
pub static ref USER_PROFILE_URL: String = format!("{}/api/user", HOST);
//
pub static ref WORKSPACE_URL: String = format!("{}/api/workspace", HOST);
pub static ref APP_URL: String = format!("{}/api/app", HOST);
pub static ref VIEW_URL: String = format!("{}/api/view", HOST);
2021-09-09 17:34:01 +08:00
pub static ref DOC_URL: String = format!("{}/api/doc", HOST);
2021-09-16 23:07:15 +08:00
pub static ref WS_ADDR: String = format!("ws://localhost:8000/ws");
2021-08-20 21:09:21 +08:00
}