]> Untitled Git - lemmy.git/commitdiff
fix typo
authorFelix <me@nutomic.com>
Thu, 16 Jan 2020 16:04:37 +0000 (17:04 +0100)
committerFelix <me@nutomic.com>
Sat, 18 Jan 2020 13:26:05 +0000 (14:26 +0100)
server/src/routes/api.rs

index b7fb773fa15ebb3bde3172d19ef601e53766e827..41d92dfd323f11de60b23b00f1315fd778e82b3c 100644 (file)
@@ -23,7 +23,7 @@ pub fn config(cfg: &mut web::ServiceConfig) {
     .route("/api/v1/list_categories", web::get().to(route::<ListCategories, ListCategoriesResponse>))
     .route("/api/v1/get_post", web::get().to(route::<GetPost, GetPostResponse>))
     .route("/api/v1/get_community", web::get().to(route::<GetCommunity, GetCommunityResponse>))
-    .route("/api/v1/create_communent", web::post().to(route::<CreateComment, CommentResponse>))
+    .route("/api/v1/create_comment", web::post().to(route::<CreateComment, CommentResponse>))
     .route("/api/v1/edit_comment", web::post().to(route::<EditComment, CommentResponse>))
     .route("/api/v1/save_comment", web::post().to(route::<SaveComment, CommentResponse>))
     .route("/api/v1/create_comment_like", web::post().to(route::<CreateCommentLike, CommentResponse>))