@@ -49,7 +49,7 @@ func createObjectID(objectType ObjectType, id string) ObjectID {
4949}
5050
5151func searchTemplates (ctx context.Context ,deps Deps ,query string ) ([]SearchResultItem ,error ) {
52- serverURL := deps .getServerURL ()
52+ serverURL := deps .ServerURL ()
5353templates ,err := deps .coderClient .Templates (ctx , codersdk.TemplateFilter {
5454SearchQuery :query ,
5555})
@@ -69,7 +69,7 @@ func searchTemplates(ctx context.Context, deps Deps, query string) ([]SearchResu
6969}
7070
7171func searchWorkspaces (ctx context.Context ,deps Deps ,query string ) ([]SearchResultItem ,error ) {
72- serverURL := deps .getServerURL ()
72+ serverURL := deps .ServerURL ()
7373workspaces ,err := deps .coderClient .Workspaces (ctx , codersdk.WorkspaceFilter {
7474FilterQuery :query ,
7575})
@@ -344,7 +344,7 @@ func fetchWorkspace(ctx context.Context, deps Deps, workspaceID string) (FetchRe
344344ID :workspace .ID .String (),
345345Title :workspace .Name ,
346346Text :string (workspaceJSON ),
347- URL :fmt .Sprintf ("%s/%s/%s" ,deps .getServerURL (),workspace .OwnerName ,workspace .Name ),
347+ URL :fmt .Sprintf ("%s/%s/%s" ,deps .ServerURL (),workspace .OwnerName ,workspace .Name ),
348348},nil
349349}
350350
@@ -365,7 +365,7 @@ func fetchTemplate(ctx context.Context, deps Deps, templateID string) (FetchResu
365365ID :template .ID .String (),
366366Title :template .DisplayName ,
367367Text :string (templateJSON ),
368- URL :fmt .Sprintf ("%s/templates/%s/%s" ,deps .getServerURL (),template .OrganizationName ,template .Name ),
368+ URL :fmt .Sprintf ("%s/templates/%s/%s" ,deps .ServerURL (),template .OrganizationName ,template .Name ),
369369},nil
370370}
371371