added new route in external controller
This commit is contained in:
parent
f403a6e1c4
commit
a98782bc01
|
@ -91,3 +91,5 @@ local.properties
|
||||||
prototype/*.db
|
prototype/*.db
|
||||||
|
|
||||||
prototype/images
|
prototype/images
|
||||||
|
prototype/data
|
||||||
|
|
||||||
|
|
|
@ -89,12 +89,12 @@ public class RequestController {
|
||||||
public String shopSearch() {
|
public String shopSearch() {
|
||||||
return "shop/search";
|
return "shop/search";
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/intern/")
|
@GetMapping("/intern/")
|
||||||
public String intern() {
|
public String intern() {
|
||||||
return "intern/index";
|
return "intern/index";
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/intern/listedArticles/")
|
@GetMapping("/intern/listedArticles/")
|
||||||
public String internListedArticles() {
|
public String internListedArticles() {
|
||||||
return "intern/listedArticles/index";
|
return "intern/listedArticles/index";
|
||||||
|
@ -156,11 +156,13 @@ public class RequestController {
|
||||||
return "intern/supplierOrders/id";
|
return "intern/supplierOrders/id";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
@GetMapping("/intern/suppliersOffers")
|
@GetMapping("/intern/suppliersOffers")
|
||||||
public String internSuppliersOffers() {
|
public String internSuppliersOffers() {
|
||||||
return "intern/offeredArticles/index";
|
return "intern/offeredArticles/index";
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/intern/accounting/")
|
@GetMapping("/intern/accounting/")
|
||||||
|
|
|
@ -1,36 +1,23 @@
|
||||||
package org.hso.ecommerce.controller.intern.suppliers;
|
package org.hso.ecommerce.controller.intern.suppliers;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpSession;
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
//@RequestMapping("/intern/suppliersOffers")
|
@RequestMapping("/intern/")
|
||||||
public class SupplierOfferController {
|
public class SupplierOfferController {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
@GetMapping("/")
|
|
||||||
public String internListedArticles(Model model) {
|
|
||||||
|
|
||||||
|
@GetMapping("suppliersOffers")
|
||||||
System.out.println("\n hier \n");
|
public String internListedArticles(Model model, HttpSession session) {
|
||||||
|
|
||||||
|
System.out.println("\nhier\n");
|
||||||
|
|
||||||
return "intern/offeredArticles/index";
|
return "intern/offeredArticles/index";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue