diff options
| author | Shulhan <ms@kilabit.info> | 2023-09-28 14:57:25 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-09-28 14:57:32 +0700 |
| commit | db2e69b62ddb2038847237fb4434702057560b22 (patch) | |
| tree | 6283538f45a0aa57f9b1dcd8cd4791f4880c217b | |
| parent | 003758ee9983b49b246f523d72bbddeed0571274 (diff) | |
| download | awwan-db2e69b62ddb2038847237fb4434702057560b22.tar.xz | |
all: split type fsRequest to its separate file
| -rw-r--r-- | fs_request.go | 10 | ||||
| -rw-r--r-- | http_server.go | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/fs_request.go b/fs_request.go new file mode 100644 index 0000000..4551a90 --- /dev/null +++ b/fs_request.go @@ -0,0 +1,10 @@ +// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info> +// SPDX-License-Identifier: GPL-3.0-or-later + +package awwan + +type fsRequest struct { + Path string `json:"path"` + Content []byte `json:"content"` + IsDir bool `json:"is_dir"` +} diff --git a/http_server.go b/http_server.go index c5d1c56..2491831 100644 --- a/http_server.go +++ b/http_server.go @@ -24,12 +24,6 @@ const ( paramNamePath = "path" ) -type fsRequest struct { - Path string `json:"path"` - Content []byte `json:"content"` - IsDir bool `json:"is_dir"` -} - func (aww *Awwan) registerHttpApis() (err error) { var ( logp = "registerHttpApis" |
