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
|
||||
- /console page to see everyones amazing api calls
|
||||
- /admin page for adnim things
|
||||
- /api for api documentation
|
||||
|
||||
**installation**
|
||||
|
||||
|
|
|
@ -27,6 +27,10 @@ pub async fn image(Path(path): Path<String>) -> Response {
|
|||
super::serve(&path).await
|
||||
}
|
||||
|
||||
pub async fn favicon() -> Response {
|
||||
super::serve("/favicon.ico").await
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct AvatarRequest {
|
||||
user_id: u64,
|
||||
|
|
|
@ -33,6 +33,7 @@ pub fn router() -> Router {
|
|||
|
||||
Router::new()
|
||||
.nest("/", pages::router())
|
||||
.route("/favicon.ico",get(file::favicon))
|
||||
.route("/js/*path", get(file::js))
|
||||
.route("/css/*path", get(file::css))
|
||||
.route("/fonts/*path", get(file::fonts))
|
||||
|
|
Loading…
Reference in a new issue