diff options
| author | Fuwn <[email protected]> | 2020-10-30 12:58:50 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2020-10-30 12:58:50 -0700 |
| commit | 3ca642734629b108ece241ea9644f5ed1ee339cb (patch) | |
| tree | 515fc5c33c62eb4ab970f3d3e5bb7f40ff417df1 /src/core/webserver.rs | |
| parent | chore: change cc env vars file type, (md -> txt) (diff) | |
| download | dep-core-next-3ca642734629b108ece241ea9644f5ed1ee339cb.tar.xz dep-core-next-3ca642734629b108ece241ea9644f5ed1ee339cb.zip | |
feat (desc)
feat:
- add `Procfile` and `app.json` to "prep" for heroku (probably not going to go to heroku though).
- implement a plugin system and enable `random_hi` plugin.
- move webserver to seperate location
Diffstat (limited to 'src/core/webserver.rs')
| -rw-r--r-- | src/core/webserver.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/core/webserver.rs b/src/core/webserver.rs deleted file mode 100644 index 0234fda..0000000 --- a/src/core/webserver.rs +++ /dev/null @@ -1,22 +0,0 @@ -use rocket::response::content; -use rocket::response::NamedFile; -// use serenity::prelude::*; -// use std::sync::Arc; - -#[get("/favicon.ico")] -pub fn icon() -> Option<NamedFile> { - NamedFile::open("static/favicon.ico").ok() -} - -#[get("/")] -pub fn index() -> content::Json<&'static str> { - content::Json("{\"message\": \"online\"}") -} - -// #[get("/")] -// pub fn get_context() -> content::Json<&'static str> { -// let ctx = Arc::new(Context); -// let ctx_clone = Arc::clone(&ctx); - -// content::Json(format!("{\"message\": \"{}\"}", data)) -// } |