File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/main/java/org/amahi/anywhere/server/api Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import org .amahi .anywhere .server .model .ServerRoute ;
4
4
5
+ import retrofit .http .Header ;
5
6
import retrofit .http .PUT ;
6
- import retrofit .http .Query ;
7
7
8
8
public interface ProxyApi
9
9
{
10
10
@ PUT ("/client" )
11
11
public ServerRoute getServerRoute (
12
- @ Query ( "session " ) String session );
12
+ @ Header ( "Session " ) String session );
13
13
}
Original file line number Diff line number Diff line change 6
6
import java .util .List ;
7
7
8
8
import retrofit .http .GET ;
9
+ import retrofit .http .Header ;
9
10
import retrofit .http .Query ;
10
11
11
12
public interface ServerApi
12
13
{
13
14
@ GET ("/shares" )
14
15
public List <ServerShare > getShares (
15
- @ Query ("session" ) String session );
16
+ @ Header ("session" ) String session );
16
17
17
18
@ GET ("/files" )
18
19
public List <ServerFile > getFiles (
19
- @ Query ( "session " ) String session ,
20
+ @ Header ( "Session " ) String session ,
20
21
@ Query ("s" ) String share ,
21
22
@ Query ("p" ) String path );
22
23
}
You can’t perform that action at this time.
0 commit comments