fehler behoben
This commit is contained in:
parent
04c0d69cb3
commit
6766a6a3e9
@ -2,7 +2,7 @@ $(document).ready(function() {
|
|||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
$(document).on("click", ".btn_detail", function() {
|
$(document).on("click", ".btn_detail", function() {
|
||||||
window.location.replace("/shoppinglist/" + $(this).closest("tr").attr("id"));
|
window.location.replace("/shoppinglist_json/" + $(this).closest("tr").attr("id"));
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".btn_add").click(function() {
|
$(".btn_add").click(function() {
|
||||||
|
@ -100,7 +100,7 @@ router.post("/shoppinglist", async function(req, res, next) {
|
|||||||
|
|
||||||
//GET Shoppinglist detail
|
//GET Shoppinglist detail
|
||||||
|
|
||||||
router.get("/shoppinglist/:sl_id", async (req, res) => {
|
router.get("/shoppinglist_json/:sl_id", async (req, res) => {
|
||||||
try {
|
try {
|
||||||
res.status(200).send(await postgres.displayShoppinglist(req.params.sl_id));
|
res.status(200).send(await postgres.displayShoppinglist(req.params.sl_id));
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,12 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<p>JSON Objects & Routes</p>
|
||||||
|
<a href="/myshoppinglists">Eigene Einkaufslisten anzeigen /myshoppinglists</a><br>
|
||||||
|
<a href="/sharedshoppinglists">Mit mir geteilte Einkaufslisten anzeigen /sharedshoppinglists</a><br>
|
||||||
|
<a href="/shoppinglist_json/0">Einkaufliste öffnen (Spar) /shoppinglist/:id</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/jquery/dist/jquery.js"></script>
|
<script src="/jquery/dist/jquery.js"></script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user