Serve different ressources for the app via a HTTP Post request.
Find a file
2026-03-31 14:21:39 +09:00
nbproject beta testing successful 2026-03-31 14:16:36 +09:00
public beta testing successful 2026-03-31 14:16:36 +09:00
res beta testing successful 2026-03-31 14:16:36 +09:00
.gitignore ready for testing 2026-03-31 13:23:11 +09:00
config.json.sample ready for testing 2026-03-31 13:23:11 +09:00
LICENSE Initial commit 2026-03-31 03:47:04 +00:00
README.md added installation and test instructions 2026-03-31 14:21:39 +09:00

pak

Serve different ressources for the app via a HTTP Post request.

installation

  • Clone the repo and make the public folder accessible by the web server.
  • Rename config.json.sample to config.json.
  • Add valid key(s) to the config.json.
  • Put your ressources in the res folder.

usage

Send a HTTP Post request with the following parameters:

  • key
    • A valid key for auth.
  • res
    • The file name of the ressource. The script will look for the file in the subfolder res.

response

The script will response with HTTP status codes.

code cause
200 OK, return data stream
400 bad request, parameter missing
401 unauthorized
404 ressource not found
405 method not allowed, not a POST request
500 internal server error

test

Send a HTTP POST request with a valid key and res=test. It should return a data stream response with the contents "success".

license

@see LICENSE