Update/admin upload (#140)

* move auth logic into upload endpoint and remove separate endpoint

* test log

* log param parse

* check for backwards compatibility

* test

* cleanup
This commit is contained in:
Lucy
2024-04-18 11:37:17 -04:00
committed by GitHub
parent 8834dd1d28
commit ae14680a54
6 changed files with 91 additions and 79 deletions

View File

@@ -1,5 +1,5 @@
/ RootR GET
/marketplace/#PkgId MarketplaceR GET
/ RootR GET
/marketplace/#PkgId MarketplaceR GET
-- EOS API V0
/eos/v0/latest EosVersionR GET -- get eos information
@@ -18,8 +18,7 @@
/package/#ApiVersion/version/#PkgId PkgVersionR GET -- get most recent appId version
-- ADMIN API V0
/admin/v0/auth/#PkgId CheckPkgAuthR POST !admin
/admin/v0/upload PkgUploadR POST !admin
/admin/v0/upload PkgUploadR POST !admin -- ?id=<pkgId>
/admin/v0/eos-upload EosUploadR POST !admin
/admin/v0/index PkgIndexR POST !admin
/admin/v0/deindex PkgDeindexR GET POST !admin