Skip to content

Commit 7fff816

Browse files
committed
chore: Use syntactic sugar for policy and use ?id instead of _:id
1 parent 2269775 commit 7fff816

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

app/controllers/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,15 @@ export default class IndexController extends Controller {
197197
);
198198
matches.rules.push(`
199199
{
200-
_:id ex:event ex:Submit.
200+
?id ex:event ex:Submit.
201201
} => {
202-
ex:HttpPolicy pol:policy ex:Pol .
203-
ex:Pol a fno:Execution ;
202+
ex:HttpPolicy pol:policy [
203+
a fno:Execution ;
204204
fno:executes ex:httpRequest ;
205205
ex:method "${this.model.policyMethod}" ;
206206
ex:url <${this.model.policyURL}> ;
207-
ex:contentType "${this.model.policyContentType}" .
207+
ex:contentType "${this.model.policyContentType}"
208+
] .
208209
} .
209210
`);
210211
matches.prefixes = this.addIfNotIncluded(

0 commit comments

Comments
 (0)