Skip to content

Instantly share code, notes, and snippets.

@nemanjan00 nemanjan00/index.js
Created Feb 6, 2019

Embed
What would you like to do?
const routes = [
{
route: new routeParser("/api/v1/users/:username/usernameinfo/"),
name: "Username info"
},
{
route: new routeParser("/api/v1/feed/user/:userId/"),
name: "User feed"
},
{
route: new routeParser("/api/v1/users/:userId/info/"),
name: "User info"
},
{
route: new routeParser("/api/v1/friendships/show/:userId/"),
name: "Check user friendship"
},
{
route: new routeParser("/api/v1/friendships/:userId/followers/"),
name: "List user followers"
},
{
route: new routeParser("/api/v1/friendships/mute_posts_or_story_from_follow/"),
name: "Mute user"
},
{
route: new routeParser("/:username/"),
name: "User"
},
{
route: new routeParser("/:username"),
name: "User"
},
{
route: new routeParser("/api/v1/friendships/create/:userId/"),
name: "Follow user"
},
{
route: new routeParser("/api/v1/tags/:hashtag/seconstions/"),
name: "Hashtag feed"
},
{
route: new routeParser("/api/v1/media/:mediaId/comments/"),
name: "Get media comments"
},
{
route: new routeParser("/api/v1/direct_v2/inbox/?"),
name: "Check inbox"
},
{
route: new routeParser("/api/v1/media/:mediaId/likers/"),
name: "List media likes"
},
{
route: new routeParser("/api/v1/news/inbox/"),
name: "News feed"
},
{
route: new routeParser("/api/v1/news/inbox"),
name: "News feed"
},
{
route: new routeParser("/api/v1/friendships/:userId/following/?"),
name: "Check if following user"
},
{
route: new routeParser("/api/v1/users/search?"),
name: "User search"
},
{
route: new routeParser("/api/v1/media/:mediaId/like/?"),
name: "Like media"
},
{
route: new routeParser("/api/v1/feed/timeline/"),
name: "Own timeline"
},
{
route: new routeParser("/web/friendships/:userId/follow/"),
name: "Follow user (web)"
},
{
route: new routeParser("/api/v1/accounts/current_user/?"),
name: "Get current user info"
},
{
route: new routeParser("/api/v1/locations/:locationId/sections/"),
name: "Get location sections"
},
{
route: new routeParser("/api/v1/scores/bootstrap/users/?"),
name: "User scores"
},
{
route: new routeParser("/static/*file"),
name: "Static files"
},
{
route: new routeParser("/api/v1/friendships/destroy/:userId/"),
name: "Unfollow user"
},
{
route: new routeParser("/api/v1/media/:mediaId/likers"),
name: "Media likers"
},
{
route: new routeParser("/graphql/query/?"),
name: "GraphQL"
},
{
route: new routeParser("/ajax/bz"),
name: "BZ"
},
{
route: new routeParser("/qp/batch_fetch_web/"),
name: "Batch fetch? "
},
{
route: new routeParser("/api/v1/feed/tag/:tag/"),
name: "Tag feed",
method: "GET"
},
{
route: new routeParser("/api/v1/feed/location/:locationId/"),
name: "Location feed",
method: "GET"
},
{
route: new routeParser("/api/v1/media/:commentId/comment_like/"),
name: "Like comment",
method: "POST"
},
{
route: new routeParser("/api/v1/users/search/?"),
name: "Search route",
method: "GET"
},
{
route: new routeParser("/api/v1/challenge/?"),
name: "Challange",
method: "GET"
},
{
route: new routeParser("/api/v1/friendships/show_many/"),
name: "Are multi following me",
method: "POST"
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.