mirror of
https://github.com/wassname/talk.git
synced 2026-07-09 14:49:20 +08:00
[CORL 133] API Review (#2197)
* refactor: removed unused subscription code
* refactor: removed management api's
* refactor: cleanup of connections
* refactor: refactored comments edge
* refactor: simplified connection resolving
* feat: added story connection edge
* fix: added story index
* feat: added user pagination and user edge
* fix: added filter to comment query
* fix: removed unused resolvers
* fix: creating a comment reply should require auth
* refactor: cleanup of graph files
* feat: removed display name, made username non-unique
* fix: fixed tests
* fix: fixed tests
* fix: added more api docs
* fix: fixed bug with installer
* refactor: fixes and updates
* fix: added linting for graphql, fixed schema
* feat: added docker build tests
* fix: upped output timeout
* fix: fixed stacktraces in production builds
* fix: removed `git add`
- `git add` was causing issues with
partial staged changs on files
* feat: improved error messaging for auth
* refactor: cleaned up queue names
* fix: merge error
This commit is contained in:
@@ -11,7 +11,7 @@ import customErrorMiddleware from "./customErrorMiddleware";
|
||||
|
||||
export type TokenGetter = () => string;
|
||||
|
||||
const graphqlURL = "/api/tenant/graphql";
|
||||
const graphqlURL = "/api/graphql";
|
||||
|
||||
export default function createNetwork(tokenGetter: TokenGetter) {
|
||||
return new RelayNetworkLayer([
|
||||
|
||||
@@ -15,7 +15,7 @@ export interface InstallInput {
|
||||
}
|
||||
|
||||
export default function install(rest: RestClient, input: InstallInput) {
|
||||
return rest.fetch("/tenant/install", {
|
||||
return rest.fetch("/install", {
|
||||
method: "POST",
|
||||
body: input,
|
||||
});
|
||||
|
||||
@@ -10,7 +10,7 @@ export interface SignInResponse {
|
||||
}
|
||||
|
||||
export default function signIn(rest: RestClient, input: SignInInput) {
|
||||
return rest.fetch<SignInResponse>("/tenant/auth/local", {
|
||||
return rest.fetch<SignInResponse>("/auth/local", {
|
||||
method: "POST",
|
||||
body: input,
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { RestClient } from "../lib/rest";
|
||||
|
||||
export default function signOut(rest: RestClient) {
|
||||
return rest.fetch("/tenant/auth", {
|
||||
return rest.fetch("/auth", {
|
||||
method: "DELETE",
|
||||
});
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ export interface SignUpResponse {
|
||||
}
|
||||
|
||||
export default function signUp(rest: RestClient, input: SignUpInput) {
|
||||
return rest.fetch<SignUpResponse>("/tenant/auth/local/signup", {
|
||||
return rest.fetch<SignUpResponse>("/auth/local/signup", {
|
||||
method: "POST",
|
||||
body: input,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user