Skip to content

Commit 0a1107a

Browse files
committed
DBProcess funktioniert besser, wenn es keine optionalen Teile gibt
1 parent 3309b34 commit 0a1107a

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

DB/DBProcess/DBProcess.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function __construct( )
9393

9494
// POST AddCourse
9595
$this->_app->post(
96-
'(/:pre)/course(/)',
96+
'(/:pre)/course',
9797
array(
9898
$this,
9999
'addCourse'
@@ -102,7 +102,7 @@ public function __construct( )
102102

103103
// DELETE DeleteCourse
104104
$this->_app->delete(
105-
'(/:pre)/course(/course)/:courseid(/)',
105+
'(/:pre)/course/:courseid',
106106
array(
107107
$this,
108108
'deleteCourse'
@@ -111,7 +111,7 @@ public function __construct( )
111111

112112
// PUT EditProcess
113113
$this->_app->put(
114-
'(/:pre)/' . $this->getPrefix( ) . '(/process)/:processid(/)',
114+
'(/:pre)/' . $this->getPrefix( ) . '/process/:processid',
115115
array(
116116
$this,
117117
'editProcess'
@@ -120,7 +120,7 @@ public function __construct( )
120120

121121
// DELETE DeleteProcess
122122
$this->_app->delete(
123-
'(/:pre)/' . $this->getPrefix( ) . '(/process)/:processid(/)',
123+
'(/:pre)/' . $this->getPrefix( ) . '/process/:processid',
124124
array(
125125
$this,
126126
'deleteProcess'
@@ -129,7 +129,7 @@ public function __construct( )
129129

130130
// POST AddProcess
131131
$this->_app->post(
132-
'(/:pre)/' . $this->getPrefix( ) . '(/)',
132+
'(/:pre)/' . $this->getPrefix( ),
133133
array(
134134
$this,
135135
'addProcess'
@@ -138,7 +138,7 @@ public function __construct( )
138138

139139
// GET GetProcess
140140
$this->_app->get(
141-
'(/:pre)/' . $this->getPrefix( ) . '(/process)/:processid(/)',
141+
'(/:pre)/' . $this->getPrefix( ) . '/process/:processid',
142142
array(
143143
$this,
144144
'getProcess'
@@ -147,7 +147,7 @@ public function __construct( )
147147

148148
// GET GetCourseProcesses
149149
$this->_app->get(
150-
'(/:pre)/' . $this->getPrefix( ) . '/course/:courseid(/)',
150+
'(/:pre)/' . $this->getPrefix( ) . '/course/:courseid',
151151
array(
152152
$this,
153153
'getCourseProcesses'
@@ -156,7 +156,7 @@ public function __construct( )
156156

157157
// GET GetExistsCourseProcesses
158158
$this->_app->get(
159-
'(/:pre)/link/exists/course/:courseid(/)',
159+
'(/:pre)/link/exists/course/:courseid',
160160
array(
161161
$this,
162162
'getExistsCourseProcesses'
@@ -165,7 +165,7 @@ public function __construct( )
165165

166166
// GET GetSheetProcesses
167167
$this->_app->get(
168-
'(/:pre)/' . $this->getPrefix( ) . '/exercisesheet/:esid(/)',
168+
'(/:pre)/' . $this->getPrefix( ) . '/exercisesheet/:esid',
169169
array(
170170
$this,
171171
'getSheetProcesses'
@@ -174,7 +174,7 @@ public function __construct( )
174174

175175
// GET GetExerciseProcesses
176176
$this->_app->get(
177-
'(/:pre)/' . $this->getPrefix( ) . '/exercise/:eid(/)',
177+
'(/:pre)/' . $this->getPrefix( ) . '/exercise/:eid',
178178
array(
179179
$this,
180180
'getExerciseProcesses'
@@ -183,7 +183,7 @@ public function __construct( )
183183

184184
// GET GetCourseComponentProcesses
185185
$this->_app->get(
186-
'(/:pre)/' . $this->getPrefix( ) . '/course/:courseid/component/:comid(/)',
186+
'(/:pre)/' . $this->getPrefix( ) . '/course/:courseid/component/:comid',
187187
array(
188188
$this,
189189
'getCourseComponentProcesses'

logic/LProcessor/LProcessor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ public function AddProcess()
340340
$this->_processorDb,
341341
'process'
342342
);
343-
343+
//echo $this->_processorDb[0]->getAddress().$URL;
344+
//echo Process::encodeProcess($process);
344345
if ( $result['status'] >= 200 &&
345346
$result['status'] <= 299 ){
346347

0 commit comments

Comments
 (0)