forked from bluesky-social/atproto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor PDS appview routes (bluesky-social#1673)
move routes around
- Loading branch information
Showing
50 changed files
with
243 additions
and
253 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
...app-view/api/app/bsky/actor/getProfile.ts → .../pds/src/api/app/bsky/actor/getProfile.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...pp-view/api/app/bsky/actor/getProfiles.ts → ...pds/src/api/app/bsky/actor/getProfiles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...view/api/app/bsky/actor/getSuggestions.ts → .../src/api/app/bsky/actor/getSuggestions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
import { Server } from '../../../../lexicon' | ||
import AppContext from '../../../../context' | ||
import getPreferences from './getPreferences' | ||
import getProfile from './getProfile' | ||
import getProfiles from './getProfiles' | ||
import getSuggestions from './getSuggestions' | ||
import putPreferences from './putPreferences' | ||
import searchActors from './searchActors' | ||
import searchActorsTypeahead from './searchActorsTypeahead' | ||
|
||
export default function (server: Server, ctx: AppContext) { | ||
getPreferences(server, ctx) | ||
getProfile(server, ctx) | ||
getProfiles(server, ctx) | ||
getSuggestions(server, ctx) | ||
putPreferences(server, ctx) | ||
searchActors(server, ctx) | ||
searchActorsTypeahead(server, ctx) | ||
} |
4 changes: 2 additions & 2 deletions
4
...p-view/api/app/bsky/actor/searchActors.ts → ...ds/src/api/app/bsky/actor/searchActors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...i/app/bsky/actor/searchActorsTypeahead.ts → ...i/app/bsky/actor/searchActorsTypeahead.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...p-view/api/app/bsky/feed/getActorFeeds.ts → ...ds/src/api/app/bsky/feed/getActorFeeds.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...p-view/api/app/bsky/feed/getActorLikes.ts → ...ds/src/api/app/bsky/feed/getActorLikes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...p-view/api/app/bsky/feed/getAuthorFeed.ts → ...ds/src/api/app/bsky/feed/getAuthorFeed.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...src/app-view/api/app/bsky/feed/getFeed.ts → ...ages/pds/src/api/app/bsky/feed/getFeed.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...iew/api/app/bsky/feed/getFeedGenerator.ts → ...src/api/app/bsky/feed/getFeedGenerator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ew/api/app/bsky/feed/getFeedGenerators.ts → ...rc/api/app/bsky/feed/getFeedGenerators.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rc/app-view/api/app/bsky/feed/getLikes.ts → ...ges/pds/src/api/app/bsky/feed/getLikes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...app-view/api/app/bsky/feed/getListFeed.ts → .../pds/src/api/app/bsky/feed/getListFeed.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...p-view/api/app/bsky/feed/getPostThread.ts → ...ds/src/api/app/bsky/feed/getPostThread.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rc/app-view/api/app/bsky/feed/getPosts.ts → ...ges/pds/src/api/app/bsky/feed/getPosts.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...p-view/api/app/bsky/feed/getRepostedBy.ts → ...ds/src/api/app/bsky/feed/getRepostedBy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ew/api/app/bsky/feed/getSuggestedFeeds.ts → ...rc/api/app/bsky/feed/getSuggestedFeeds.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...app-view/api/app/bsky/feed/getTimeline.ts → .../pds/src/api/app/bsky/feed/getTimeline.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Server } from '../../../../lexicon' | ||
import AppContext from '../../../../context' | ||
import getActorFeeds from './getActorFeeds' | ||
import getActorLikes from './getActorLikes' | ||
import getAuthorFeed from './getAuthorFeed' | ||
import getFeed from './getFeed' | ||
import getFeedGenerator from './getFeedGenerator' | ||
import getFeedGenerators from './getFeedGenerators' | ||
import getLikes from './getLikes' | ||
import getListFeed from './getListFeed' | ||
import getPosts from './getPosts' | ||
import getPostThread from './getPostThread' | ||
import getRepostedBy from './getRepostedBy' | ||
import getSuggestedFeeds from './getSuggestedFeeds' | ||
import getTimeline from './getTimeline' | ||
|
||
export default function (server: Server, ctx: AppContext) { | ||
getActorFeeds(server, ctx) | ||
getActorLikes(server, ctx) | ||
getAuthorFeed(server, ctx) | ||
getFeed(server, ctx) | ||
getFeedGenerator(server, ctx) | ||
getFeedGenerators(server, ctx) | ||
getLikes(server, ctx) | ||
getListFeed(server, ctx) | ||
getPosts(server, ctx) | ||
getPostThread(server, ctx) | ||
getRepostedBy(server, ctx) | ||
getSuggestedFeeds(server, ctx) | ||
getTimeline(server, ctx) | ||
} |
4 changes: 2 additions & 2 deletions
4
.../app-view/api/app/bsky/graph/getBlocks.ts → ...s/pds/src/api/app/bsky/graph/getBlocks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...p-view/api/app/bsky/graph/getFollowers.ts → ...ds/src/api/app/bsky/graph/getFollowers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...app-view/api/app/bsky/graph/getFollows.ts → .../pds/src/api/app/bsky/graph/getFollows.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rc/app-view/api/app/bsky/graph/getList.ts → ...ges/pds/src/api/app/bsky/graph/getList.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...-view/api/app/bsky/graph/getListBlocks.ts → ...s/src/api/app/bsky/graph/getListBlocks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...p-view/api/app/bsky/graph/getListMutes.ts → ...ds/src/api/app/bsky/graph/getListMutes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...c/app-view/api/app/bsky/graph/getLists.ts → ...es/pds/src/api/app/bsky/graph/getLists.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...c/app-view/api/app/bsky/graph/getMutes.ts → ...es/pds/src/api/app/bsky/graph/getMutes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../bsky/graph/getSuggestedFollowsByActor.ts → .../bsky/graph/getSuggestedFollowsByActor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Server } from '../../../../lexicon' | ||
import AppContext from '../../../../context' | ||
import getBlocks from './getBlocks' | ||
import getFollowers from './getFollowers' | ||
import getFollows from './getFollows' | ||
import getList from './getList' | ||
import getListBlocks from './getListBlocks' | ||
import getListMutes from './getListMutes' | ||
import getLists from './getLists' | ||
import getMutes from './getMutes' | ||
import getSuggestedFollowsByActor from './getSuggestedFollowsByActor' | ||
import muteActor from './muteActor' | ||
import muteActorList from './muteActorList' | ||
import unmuteActor from './unmuteActor' | ||
import unmuteActorList from './unmuteActorList' | ||
|
||
export default function (server: Server, ctx: AppContext) { | ||
getBlocks(server, ctx) | ||
getFollowers(server, ctx) | ||
getFollows(server, ctx) | ||
getList(server, ctx) | ||
getListBlocks(server, ctx) | ||
getListMutes(server, ctx) | ||
getLists(server, ctx) | ||
getMutes(server, ctx) | ||
getSuggestedFollowsByActor(server, ctx) | ||
muteActor(server, ctx) | ||
muteActorList(server, ctx) | ||
unmuteActor(server, ctx) | ||
unmuteActorList(server, ctx) | ||
} |
4 changes: 2 additions & 2 deletions
4
.../app-view/api/app/bsky/graph/muteActor.ts → ...s/pds/src/api/app/bsky/graph/muteActor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...-view/api/app/bsky/graph/muteActorList.ts → ...s/src/api/app/bsky/graph/muteActorList.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...pp-view/api/app/bsky/graph/unmuteActor.ts → ...pds/src/api/app/bsky/graph/unmuteActor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...iew/api/app/bsky/graph/unmuteActorList.ts → ...src/api/app/bsky/graph/unmuteActorList.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.