@@ -24,7 +24,7 @@ export type read_file_output = File;
2424export async function read_file (
2525 input : read_file_input
2626) : Promise < read_file_output > {
27- return SessionGet ( input , scope ( ) , ( path ) => `/read_file/ ${ path . scope } ` ) ;
27+ return SessionGet ( input , scope ( ) , ( path ) => `/${ path . scope } /read_file ` ) ;
2828}
2929
3030export type write_file_input = Sessioned < {
@@ -35,7 +35,7 @@ export type write_file_output = void;
3535export async function write_file (
3636 input : write_file_input
3737) : Promise < write_file_output > {
38- return SessionPost ( input , scope ( ) , ( path ) => `/write_file/ ${ path . scope } ` ) ;
38+ return SessionPost ( input , scope ( ) , ( path ) => `/${ path . scope } /write_file ` ) ;
3939}
4040
4141export type remove_file_input = Sessioned < {
@@ -46,7 +46,7 @@ export type remove_file_output = void;
4646export async function remove_file (
4747 input : remove_file_input
4848) : Promise < remove_file_output > {
49- return SessionPost ( input , scope ( ) , ( path ) => `/remove_file/ ${ path . scope } ` ) ;
49+ return SessionPost ( input , scope ( ) , ( path ) => `/${ path . scope } /remove_file ` ) ;
5050}
5151
5252export type read_directory_input = Sessioned < {
@@ -57,7 +57,7 @@ export type read_directory_output = Directory;
5757export async function read_directory (
5858 input : read_directory_input
5959) : Promise < read_directory_output > {
60- return SessionGet ( input , scope ( ) , ( path ) => `/read_directory/ ${ path . scope } ` ) ;
60+ return SessionGet ( input , scope ( ) , ( path ) => `/${ path . scope } /read_directory ` ) ;
6161}
6262
6363export type create_directory_input = Sessioned < {
@@ -71,7 +71,7 @@ export async function create_directory(
7171 return SessionPost (
7272 input ,
7373 scope ( ) ,
74- ( path ) => `/create_directory/ ${ path . scope } `
74+ ( path ) => `/${ path . scope } /create_directory `
7575 ) ;
7676}
7777
@@ -86,6 +86,6 @@ export async function remove_directory(
8686 return SessionPost (
8787 input ,
8888 scope ( ) ,
89- ( path ) => `/remove_directory/ ${ path . scope } `
89+ ( path ) => `/${ path . scope } /remove_directory `
9090 ) ;
9191}
0 commit comments