An open API service indexing awesome lists of open source software.

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

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/).