mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
refactor
This commit is contained in:
+6
-21
@@ -1,33 +1,18 @@
|
||||
export default {
|
||||
|
||||
getNonConfirmedActiveAmpeln: function () {
|
||||
open: function () {
|
||||
return this.$fhcApi.get(
|
||||
FHC_JS_DATA_STORAGE_OBJECT.app_root +
|
||||
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
|
||||
`/api/frontend/v1/Ampeln/getNonConfirmedActiveAmpeln`,{});
|
||||
`/api/frontend/v1/Ampeln/open`,{});
|
||||
},
|
||||
|
||||
getAllActiveAmpeln: function () {
|
||||
all: function () {
|
||||
return this.$fhcApi.get(
|
||||
FHC_JS_DATA_STORAGE_OBJECT.app_root +
|
||||
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
|
||||
`/api/frontend/v1/Ampeln/getAllActiveAmpeln`,{});
|
||||
`/api/frontend/v1/Ampeln/all`,{});
|
||||
},
|
||||
|
||||
|
||||
|
||||
confirmAmpel: function (ampel_id) {
|
||||
confirm: function (ampel_id) {
|
||||
return this.$fhcApi.get(
|
||||
FHC_JS_DATA_STORAGE_OBJECT.app_root +
|
||||
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
|
||||
`/api/frontend/v1/Ampeln/confirmAmpel/${ampel_id}`,{});
|
||||
},
|
||||
|
||||
alleAmpeln: function () {
|
||||
return this.$fhcApi.get(
|
||||
FHC_JS_DATA_STORAGE_OBJECT.app_root +
|
||||
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
|
||||
`/api/frontend/v1/Ampeln/alleAmpeln`,{});
|
||||
`/api/frontend/v1/Ampeln/confirm/${ampel_id}`,{});
|
||||
},
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user