mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 21:46:27 +02:00
refactor: typescript api
This commit is contained in:
parent
234530ed60
commit
996929f053
16 changed files with 341 additions and 321 deletions
|
@ -27,7 +27,7 @@ const msg_format = {
|
|||
|
||||
exports.handler = async ({ axios, packages }) => {
|
||||
const requests = packages.map(package => split_package(package));
|
||||
for (request of requests) {
|
||||
for (const request of requests) {
|
||||
try {
|
||||
const install = await axios.post(`/api/v2/packages`, request);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue