This repository has been archived by the owner on Jul 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Added new API endpoints + Updated API endpoints #116
Merged
Merged
Conversation
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
SQL Risks Found
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates and adds new api endpoints.
Updated files:
website.ts
- Updated to removebody-parser
and add new URLs to CSP./api/register.ts
- Updated to add recaptcha.init.sql
- Addsannouncements
table for annoncements.permissions.json
- For announcement permissions (POST & DELETE)/api/order.ts
- To add support for /api/order/checkout (For ordering a package) and /api/order/webhook (May change but it's for stripe to send a request to the server to give the client their package.New files/endpoints:
/api/announcements.ts
- Allows you to view the announcements posted. (Or to create/delete announcements)success.eta
- Success page for orderingcancel.eta
- Cancel page for ordering (If you press the back button on stripe)New packages added:
stripe
- For orders.node-fetch
- For fetching results from a site (Used for recaptcha)If there are any bugs with this PR, please let me know so I can fix them.