From 91be25d9f66e89f71f0ede7f5e4fd27d6413323c Mon Sep 17 00:00:00 2001 From: realaravinth Date: Fri, 18 Feb 2022 23:12:52 +0530 Subject: [PATCH] fix: serve get_file under contents/ --- src/api/v1/routes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/v1/routes.rs b/src/api/v1/routes.rs index 8a834cf..a7fb4cf 100644 --- a/src/api/v1/routes.rs +++ b/src/api/v1/routes.rs @@ -65,7 +65,7 @@ impl Gist { /// create new instance of Authentication route pub const fn new() -> Gist { let new = "/api/v1/gist/new"; - let get_file = "/api/v1/gist/profile/{username}/{gist}/{file}"; + let get_file = "/api/v1/gist/profile/{username}/{gist}/contents/{file}"; Gist { new, get_file } }