aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/workspaces/httpworkspaces.h
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-06-04 22:21:06 +0200
committerGitHub Enterprise <[email protected]>2024-06-04 22:21:06 +0200
commit3a82e1cb3b5a284d2c47e03d541a35b84589314b (patch)
treed4b6c3d7c548b2d6f83b105fb0a5668ca2152889 /src/zenserver/workspaces/httpworkspaces.h
parentadd batching of CacheStore requests for GetCacheValues/GetCacheChunks (#90) (diff)
downloadzen-3a82e1cb3b5a284d2c47e03d541a35b84589314b.tar.xz
zen-3a82e1cb3b5a284d2c47e03d541a35b84589314b.zip
workspace share aliases (#91)
- Add `zen workspace-share` `--root-path` option - the root local file path of the workspace - if given it will automatically create the workspace before creating the share. If `--workspace` is omitted, an id will be generated from the `--root-path` parameter - Add `/ws/share/{alias}/` endpoint - a shortcut to `/ws/{workspace_id}/{share_id}/` based endpoints using the alias for a workspace share - Add `--alias` option to replace `--workspace` and `--share` options for `workspace-share` zen commands - Rename `zen workspace create` `folder` option to `root-path` - Rename `zen workspace create` `folder` option to `share-path`
Diffstat (limited to 'src/zenserver/workspaces/httpworkspaces.h')
-rw-r--r--src/zenserver/workspaces/httpworkspaces.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/zenserver/workspaces/httpworkspaces.h b/src/zenserver/workspaces/httpworkspaces.h
index cfd23e7ba..a61f7d7e3 100644
--- a/src/zenserver/workspaces/httpworkspaces.h
+++ b/src/zenserver/workspaces/httpworkspaces.h
@@ -61,6 +61,20 @@ private:
void ShareRequest(HttpRouterRequest& Req);
void WorkspaceRequest(HttpRouterRequest& Req);
+ void ShareAliasFilesRequest(HttpRouterRequest& Req);
+ void ShareAliasChunkInfoRequest(HttpRouterRequest& Req);
+ void ShareAliasBatchRequest(HttpRouterRequest& Req);
+ void ShareAliasEntriesRequest(HttpRouterRequest& Req);
+ void ShareAliasChunkRequest(HttpRouterRequest& Req);
+ void ShareAliasRequest(HttpRouterRequest& Req);
+
+ void FilesRequest(HttpRouterRequest& Req, const Oid& WorkspaceId, const Oid& ShareId);
+ void ChunkInfoRequest(HttpRouterRequest& Req, const Oid& WorkspaceId, const Oid& ShareId);
+ void BatchRequest(HttpRouterRequest& Req, const Oid& WorkspaceId, const Oid& ShareId);
+ void EntriesRequest(HttpRouterRequest& Req, const Oid& WorkspaceId, const Oid& ShareId);
+ void ChunkRequest(HttpRouterRequest& Req, const Oid& WorkspaceId, const Oid& ShareId);
+ void ShareRequest(HttpRouterRequest& Req, const Oid& WorkspaceId, const Oid& InShareId);
+
HttpStatsService& m_StatsService;
const FileServeConfig m_Config;
HttpRequestRouter m_Router;