Fix routing

This commit is contained in:
Tim Van Baak 2020-12-29 20:15:09 -08:00
parent 428cf8df35
commit 4ded4ded42
1 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@
</style> </style>
<script> <script>
var deactivate = function (source, itemid) { var deactivate = function (source, itemid) {
fetch('deactivate/', { fetch('/deactivate/', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json; charset=UTF-8', 'Content-Type': 'application/json; charset=UTF-8',
@ -50,7 +50,7 @@
}); });
}; };
var punt = function (source, itemid) { var punt = function (source, itemid) {
fetch('punt/', { fetch('/punt/', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json; charset=UTF-8', 'Content-Type': 'application/json; charset=UTF-8',
@ -66,7 +66,7 @@
}); });
}; };
var mdeactivate = function (items) { var mdeactivate = function (items) {
fetch('mass-deactivate/', { fetch('/mass-deactivate/', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json; charset=UTF-8', 'Content-Type': 'application/json; charset=UTF-8',
@ -78,7 +78,7 @@
}); });
}; };
var callback = function (source, itemid) { var callback = function (source, itemid) {
fetch('callback/', { fetch('/callback/', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json; charset=UTF-8', 'Content-Type': 'application/json; charset=UTF-8',