mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-07 15:42:38 +02:00
remove the rest/ path from endpoints
This commit is contained in:
@@ -36,6 +36,7 @@ package sonia.scm.it;
|
||||
import org.apache.http.HttpStatus;
|
||||
import org.assertj.core.api.Assertions;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.TemporaryFolder;
|
||||
|
||||
@@ -10,7 +10,7 @@ import static java.net.URI.create;
|
||||
public class RestUtil {
|
||||
|
||||
public static final URI BASE_URL = create("http://localhost:8081/scm/");
|
||||
public static final URI REST_BASE_URL = BASE_URL.resolve("api/rest/v2/");
|
||||
public static final URI REST_BASE_URL = BASE_URL.resolve("api/v2/");
|
||||
|
||||
public static URI createResourceUrl(String path) {
|
||||
return REST_BASE_URL.resolve(path);
|
||||
|
||||
Reference in New Issue
Block a user