favicon fix / readme
This commit is contained in:
parent
ecb815043a
commit
429da306ee
3 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,7 @@ now with xssbook you can run as much stallman disapprovement as you want
|
||||||
- api calls dont care what you send them as long as they are valid strings
|
- api calls dont care what you send them as long as they are valid strings
|
||||||
- /console page to see everyones amazing api calls
|
- /console page to see everyones amazing api calls
|
||||||
- /admin page for adnim things
|
- /admin page for adnim things
|
||||||
|
- /api for api documentation
|
||||||
|
|
||||||
**installation**
|
**installation**
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,10 @@ pub async fn image(Path(path): Path<String>) -> Response {
|
||||||
super::serve(&path).await
|
super::serve(&path).await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub async fn favicon() -> Response {
|
||||||
|
super::serve("/favicon.ico").await
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
pub struct AvatarRequest {
|
pub struct AvatarRequest {
|
||||||
user_id: u64,
|
user_id: u64,
|
||||||
|
|
|
@ -33,6 +33,7 @@ pub fn router() -> Router {
|
||||||
|
|
||||||
Router::new()
|
Router::new()
|
||||||
.nest("/", pages::router())
|
.nest("/", pages::router())
|
||||||
|
.route("/favicon.ico",get(file::favicon))
|
||||||
.route("/js/*path", get(file::js))
|
.route("/js/*path", get(file::js))
|
||||||
.route("/css/*path", get(file::css))
|
.route("/css/*path", get(file::css))
|
||||||
.route("/fonts/*path", get(file::fonts))
|
.route("/fonts/*path", get(file::fonts))
|
||||||
|
|
Loading…
Reference in a new issue