https://github.com/acearchive/submission-worker
A serverless function which handles artifact submissions
https://github.com/acearchive/submission-worker
cloudflare-workers
Last synced: about 1 year ago
JSON representation
A serverless function which handles artifact submissions
- Host: GitHub
- URL: https://github.com/acearchive/submission-worker
- Owner: acearchive
- License: mit
- Created: 2023-10-01T20:37:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-27T07:39:23.000Z (over 1 year ago)
- Last Synced: 2025-02-27T10:31:05.545Z (over 1 year ago)
- Topics: cloudflare-workers
- Language: TypeScript
- Homepage:
- Size: 191 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# submission-worker
This repo is a [Cloudflare Worker](https://developers.cloudflare.com/workers/) for adding artifact
metadata to the database.
This worker accepts `POST` requests containing the artifact metadata JSON to this endpoint:
```
https://submit.acearchive.lgbt/submit
```
This worker is called by
[acearchive/artifact-submit-action](https://github.com/acearchive/artifact-submit-action) to upload
new artifact metadata and stores the metadata in a [Cloudflare
D1](https://developers.cloudflare.com/d1) SQLite database.
## Database
This repo is where the database migrations live, in the [migrations/](./migrations/) directory. You
can apply migrations with [Wrangler](https://developers.cloudflare.com/workers/wrangler/).