mirror of https://github.com/mastodon/flodgatt
Add descriptive success messages
Improves the success messages from "OMG! It worked!" to a descriptive string identifying which function was invoked.
This commit is contained in:
parent
083130682f
commit
7a0b11e240
|
@ -2,5 +2,5 @@ use crate::AppState;
|
|||
use actix_web::{HttpRequest, Responder};
|
||||
|
||||
pub fn index(_req: HttpRequest<AppState>) -> impl Responder {
|
||||
"OMG! It works!"
|
||||
"placeholder response from direct::index"
|
||||
}
|
||||
|
|
|
@ -2,9 +2,9 @@ use crate::AppState;
|
|||
use actix_web::{HttpRequest, Responder};
|
||||
|
||||
pub fn index(_req: HttpRequest<AppState>) -> impl Responder {
|
||||
"OMG! It works!"
|
||||
"placeholder response from hashtag::index"
|
||||
}
|
||||
|
||||
pub fn local(_req: HttpRequest<AppState>) -> impl Responder {
|
||||
"OMG! It works!"
|
||||
"placeholder response from hashtag::local"
|
||||
}
|
||||
|
|
|
@ -2,5 +2,5 @@ use crate::AppState;
|
|||
use actix_web::{HttpRequest, Responder};
|
||||
|
||||
pub fn index(_req: HttpRequest<AppState>) -> impl Responder {
|
||||
"OMG! It works!"
|
||||
"placeholder response from list::index"
|
||||
}
|
||||
|
|
|
@ -2,9 +2,9 @@ use crate::AppState;
|
|||
use actix_web::{HttpRequest, Responder};
|
||||
|
||||
pub fn index(_req: HttpRequest<AppState>) -> impl Responder {
|
||||
"OMG! It works!"
|
||||
"placeholder response from public::index"
|
||||
}
|
||||
|
||||
pub fn local(_req: HttpRequest<AppState>) -> impl Responder {
|
||||
"OMG! It works!"
|
||||
"placeholder response from public::local"
|
||||
}
|
||||
|
|
|
@ -2,5 +2,5 @@ use crate::AppState;
|
|||
use actix_web::{HttpRequest, Responder};
|
||||
|
||||
pub fn index(_req: HttpRequest<AppState>) -> impl Responder {
|
||||
"OMG! It works!"
|
||||
"placeholder response from user::index"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue