Skip to content

Commit

Permalink
Add Admin endpoints to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgef committed Jan 17, 2024
1 parent 93b4675 commit c146938
Show file tree
Hide file tree
Showing 128 changed files with 151 additions and 139 deletions.
2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/classes/Apiker.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/classes/ResponseParams.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/addLogEntry.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/addUniqueLogEntry.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/banEntity.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/functions/bansEndpoint.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/checkUser.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/compare_bcrypt.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/createJWT.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/decodeString.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/deleteAllLogsInObject.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/deleteAllObjectState.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/deleteLogEntries.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/deleteObjectState.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/deleteUserLogEntries.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/elapsedSinceRequestStart.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/encodeString.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/extractToken.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/firewallBanIP.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/firewallMiddleware.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/firewallUnbanIP.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/forgotUser.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/forgotUserAction.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/forgotUserReset.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/forwardToMiddleware.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getAllLogEntries.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getAuthRoutes.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getBannedEntities.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getBannedEntries.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getClientId.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getCurrentUser.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getCurrentUserGeodata.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getEnvObject.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getFirewallBannedEntryId.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getLogEntries.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getLogParams.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getObjectState.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getRawIp.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getSignedIp.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getStateMethods.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getTokens.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getUserGeodata.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getUserLogEntries.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getUserLogPropertyName.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/handleEntryRequest.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/hash_bcrypt.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isCurrentUserAdmin.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isEmail.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isEntityBanned.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isRateLimitReached.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isRequiredLength.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isUserAdmin.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/listObjectState.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/functions/loginEndpoint.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/loginUser.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/loginUserAction.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/measureTiming.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/pageFooter.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/pageHeader.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/parseJWT.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/parseObjectStateMapping.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/putObjectState.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/randomHash.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/randomHash_SHA1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/rateLimitRequest.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/readRequestBody.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/refreshUser.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/registerUser.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/registerUserAction.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/res.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/resRaw.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/res_200.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/res_204.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/res_400.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/res_401.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/res_404.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/res_429.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/res_500.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/functions/searchBansEndpoint.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/sendEmail.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/functions/sendEmailEndpoint.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/sign.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/sign_sha1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/sign_sha256.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/unbanEntity.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/functions/updateUserEndpoint.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/wrapPage.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/wrapReactPage.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/Controllers.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/EmailActor.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/EmailOptions.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Firewall.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/ListRequestObject.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/LogObject.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Options.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/PutRequestObject.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/RequestParams.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/RouteObject.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/Routes.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/StateMethods.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/User.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/modules.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Controller.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Handler.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Middleware.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/ObjectStateMapping.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/StateFn.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Timings.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/EMAIL_API_ENDPOINT.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/FIREWALL_ENDPOINT.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/FIREWALL_RATELIMIT_PREFIX.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/FIREWALL_REQUESTS_MINUTE.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/MAX_STR_LEN.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/MIN_STR_LEN.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/OBMT.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/OBN.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/RESPONSE_HEADERS_DEFAULT.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/RESPONSE_MESSAGES.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/apiker-1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/forgotPasswordTemplate.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/newPasswordTemplate.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/verifyAccountSuccessTemplate.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/verifyAccountTemplate.html

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions src/components/Admin/Admin.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { Handler, RequestParams } from "../Request";
import { resRaw } from "../Response";
import { apikerPagesStatic } from "../Static";
import { bansEndpoint, searchBansEndpoint } from "./Api/bansEndpoint";
import { loginEndpoint } from "./Api/loginEndpoint";
import { sendEmailEndpoint } from "./Api/sendEmailEndpoint";
import { updateUserEndpoint } from "./Api/updateUserEndpoint";
import { bansEndpoint, loginEndpoint, searchBansEndpoint, sendEmailEndpoint, updateUserEndpoint } from "./Api";
import { adminPanelPage } from "./Panel";
import { adminCsrfCheckMiddleware, adminMiddleware } from "./middleware";

Expand Down
4 changes: 4 additions & 0 deletions src/components/Admin/Api/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from "./bansEndpoint";
export * from "./loginEndpoint";
export * from "./sendEmailEndpoint";
export * from "./updateUserEndpoint";
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from "./Apiker";
export * from "./Admin/Api";
export * from "./Auth";
export * from "./Bans";
export * from "./Email";
Expand Down

0 comments on commit c146938

Please sign in to comment.