- commit
- 6f27168
- parent
- 71a4682
- author
- Eric Bower
- date
- 2024-03-11 19:24:38 +0000 UTC
chore(ui): change post apis
1 files changed,
+3,
-3
+3,
-3
1@@ -379,8 +379,8 @@ func CreateRoutes(httpCtx *shared.HttpCtx, ctx ssh.Context) []shared.Route {
2 shared.NewCorsRoute("POST", "/api/tokens", createToken(httpCtx, ctx, user)),
3 shared.NewCorsRoute("DELETE", "/api/tokens/(.+)", deleteToken(httpCtx, ctx, user)),
4 shared.NewCorsRoute("GET", "/api/projects", getProjects(httpCtx, ctx, user)),
5- shared.NewCorsRoute("GET", "/api/prose", getPosts(httpCtx, ctx, user, "prose")),
6- shared.NewCorsRoute("GET", "/api/pastes", getPosts(httpCtx, ctx, user, "pastes")),
7- shared.NewCorsRoute("GET", "/api/feeds", getPosts(httpCtx, ctx, user, "feeds")),
8+ shared.NewCorsRoute("GET", "/api/posts/prose", getPosts(httpCtx, ctx, user, "prose")),
9+ shared.NewCorsRoute("GET", "/api/posts/pastes", getPosts(httpCtx, ctx, user, "pastes")),
10+ shared.NewCorsRoute("GET", "/api/posts/feeds", getPosts(httpCtx, ctx, user, "feeds")),
11 }
12 }