Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
withinJoel committed Aug 19, 2024
1 parent 2fc9523 commit 95170bf
Show file tree
Hide file tree
Showing 17 changed files with 13 additions and 13 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion build/resources/main/static/departments.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h2 class="card-title">Department List</h2>
<!-- Materialize JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
const apiUrl = 'http://localhost:8080/api/departments';
const apiUrl = 'http://localhost:8080/api/departments/v1/';

function fetchDepartments() {
fetch(apiUrl)
Expand Down
4 changes: 2 additions & 2 deletions build/resources/main/static/employees.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ <h2 class="card-title">Employee List</h2>

<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
const employeeApiUrl = 'http://localhost:8080/api/employees';
const departmentApiUrl = 'http://localhost:8080/api/departments';
const employeeApiUrl = 'http://localhost:8080/api/employees/v1/';
const departmentApiUrl = 'http://localhost:8080/api/departments/v1/';
// Create an empty array to store department names
const departmentNames = [];

Expand Down
4 changes: 2 additions & 2 deletions build/resources/main/static/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ <h2 class="card-title">Project List</h2>

<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
const projectApiUrl = 'http://localhost:8080/api/projects';
const employeeApiUrl = 'http://localhost:8080/api/employees';
const projectApiUrl = 'http://localhost:8080/api/projects/v1/';
const employeeApiUrl = 'http://localhost:8080/api/employees/v1/';

function fetchEmployees() {
fetch(employeeApiUrl)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/tmp/compileJava/previous-compilation-data.bin
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import java.util.List;

@RestController
@RequestMapping("/api/departments")
@RequestMapping("/api/departments/v1/")
public class DepartmentController {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import java.util.stream.Collectors;

@RestController
@RequestMapping("/api/employees")
@RequestMapping("/api/employees/v1/")
public class EmployeeController {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.util.List;

@RestController
@RequestMapping("/api/projects")
@RequestMapping("/api/projects/v1/")
public class ProjectController {

@Autowired
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/departments.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h2 class="card-title">Department List</h2>
<!-- Materialize JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
const apiUrl = 'http://localhost:8080/api/departments';
const apiUrl = 'http://localhost:8080/api/departments/v1/';

function fetchDepartments() {
fetch(apiUrl)
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/static/employees.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ <h2 class="card-title">Employee List</h2>

<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
const employeeApiUrl = 'http://localhost:8080/api/employees';
const departmentApiUrl = 'http://localhost:8080/api/departments';
const employeeApiUrl = 'http://localhost:8080/api/employees/v1/';
const departmentApiUrl = 'http://localhost:8080/api/departments/v1/';
// Create an empty array to store department names
const departmentNames = [];

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/static/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ <h2 class="card-title">Project List</h2>

<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
const projectApiUrl = 'http://localhost:8080/api/projects';
const employeeApiUrl = 'http://localhost:8080/api/employees';
const projectApiUrl = 'http://localhost:8080/api/projects/v1/';
const employeeApiUrl = 'http://localhost:8080/api/employees/v1/';

function fetchEmployees() {
fetch(employeeApiUrl)
Expand Down

0 comments on commit 95170bf

Please sign in to comment.