@@ -117,37 +117,37 @@ async fn main() -> anyhow::Result<()> {
117117 . route ( "/global_data" , get ( global_data:: get) )
118118 . route ( "/authenticate" , get ( get_authenticate) )
119119 . route ( "/gateway" , any ( gateway) )
120- . route ( "/user/: uuid" , get ( user:: get) . post ( user:: post) )
121- . route ( "/user/: uuid/images" , get ( user:: get_images) )
120+ . route ( "/user/{ uuid} " , get ( user:: get) . post ( user:: post) )
121+ . route ( "/user/{ uuid} /images" , get ( user:: get_images) )
122122 . route ( "/channels" , get ( account:: get_channels) )
123123 . route ( "/channels/invites" , get ( account:: get_channel_invites) . post ( account:: post_channel_invite) )
124124 . route ( "/channel" , post ( channel:: post) )
125125 . route (
126- "/channel/:id " ,
126+ "/channel/{id} " ,
127127 get ( channel:: get)
128128 . post ( channel:: post_channel)
129129 . patch ( channel:: patch)
130130 . delete ( channel:: delete) ,
131131 )
132- . route ( "/channel/:id /messages" , get ( channel:: get_messages) )
133- . route ( "/channel/:id /remove" , post ( channel:: remove_user) )
132+ . route ( "/channel/{id} /messages" , get ( channel:: get_messages) )
133+ . route ( "/channel/{id} /remove" , post ( channel:: remove_user) )
134134 . route ( "/account" , get ( account:: get) . delete ( account:: delete) )
135135 . route ( "/account/activity" , post ( account:: post_activity) )
136136 . route ( "/account/data" , get ( account:: get_data) )
137137 . route ( "/account/settings" , get ( account:: get_settings) . patch ( account:: patch_settings) )
138- . route ( "/account/username/: username" , post ( account:: post_username) . delete ( account:: delete_username) )
138+ . route ( "/account/username/{ username} " , post ( account:: post_username) . delete ( account:: delete_username) )
139139 . route ( "/account/relations/friends" , get ( account:: get_friends) )
140140 . route ( "/account/relations/blocked" , get ( account:: get_blocked) )
141141 . route ( "/account/relations/requests" , get ( account:: get_requests) )
142142 . route (
143- "/image/:id " ,
143+ "/image/{id} " ,
144144 get ( image:: get)
145145 . post ( image:: post)
146146 . layer ( DefaultBodyLimit :: max ( 1024 * 1024 * 8 ) ) ,
147147 )
148- . route ( "/image/:id /raw" , get ( image:: get_raw) )
149- . route ( "/image/:id /view" , get ( image:: get_view) )
150- . route ( "/image/:id /oembed" , get ( image:: get_oembed) )
148+ . route ( "/image/{id} /raw" , get ( image:: get_raw) )
149+ . route ( "/image/{id} /view" , get ( image:: get_view) )
150+ . route ( "/image/{id} /oembed" , get ( image:: get_oembed) )
151151 . route ( "/hypixel" , get ( hypixel:: get) )
152152 //.route("/report/:message", post(channel::report_message))
153153 . route ( "/brew_coffee" , get ( brew_coffee) . post ( brew_coffee) )
0 commit comments