upload_things/
route.rs

1
2
3
4
5
6
7
8
9
10
pub enum UtRoute {
    PresignedUrl,
}
impl Into<&str> for UtRoute {
    fn into(self) -> &'static str {
        match self {
            UtRoute::PresignedUrl=> "/api/uploadthing/presigned-url",
        }
    }
}