Skip to content

Commit

Permalink
Add all HTML/JS/CSS files into src/main/webapp directory.
Browse files Browse the repository at this point in the history
Added /api prefix to all api calls.
  • Loading branch information
shsu committed Feb 27, 2014
1 parent 54ce465 commit be533ca
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;

@ApplicationPath("/")
@ApplicationPath("/api")
public class JaxRsActivator extends Application {

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public String test() {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("<link href=\"//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css\" rel=\"stylesheet\">");
stringBuffer.append("<div class=\"container\"><br />");
stringBuffer.append("<div class=\"alert alert-success\"><h3>All Systems Operational</h3></div>");
stringBuffer.append("<div class=\"alert alert-success\"><h3>API Endpoint is Operational</h3></div>");
stringBuffer.append("</div>");
return stringBuffer.toString();
}
Expand Down
9 changes: 9 additions & 0 deletions src/main/webapp/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1>Regular Systems OK</h1>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static org.hamcrest.Matchers.equalTo;

public class UserResourceTest {
private static final String url = "https://comp4911-stevenhsu.rhcloud.com";
private static final String url = "https://comp4911-stevenhsu.rhcloud.com/api";

private JSONObject authorizationJSONObject;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import static org.junit.Assert.assertFalse;

public class UsersResourceTest {
private static final String url = "https://comp4911-stevenhsu.rhcloud.com";
private static final String url = "https://comp4911-stevenhsu.rhcloud.com/api";

private String token;

Expand Down

0 comments on commit be533ca

Please sign in to comment.