Redoing program to center around JSONRPC instead of a more REST-like API

This commit is contained in:
Ben 2025-07-28 08:10:06 -07:00
parent ed4bbeb608
commit be8936a665
Signed by: webmaster
GPG key ID: A5FCBAF34E6E8B50
15 changed files with 209 additions and 170 deletions

View file

@ -1,21 +0,0 @@
package subprocess
/* This file manages creating the command line arguments to the subprocess */
/* Method which module http calls to create the subprocess */
func Run(path string, body []byte) (status int, bodyContents []byte, err error) {
arguments := getArguments(path, body);
// Don't know what to do with this request
if arguments == nil {return 404, []byte("Unknown request\n"), nil;}
// Call subprocess
status, bodyContents, err = runCommand(arguments);
return
}
/* Converts a request into the correct binary arguments */
func getArguments(path string, body []byte) []string {
return nil // For now
}