Skip to content

Commit 8791062

Browse files
Fix hosted service syntax: ensure patterns have leading slash
1 parent 566011e commit 8791062

File tree

1 file changed

+3
-3
lines changed
  • showcases/data/Lambda/Activator - Hosted service

1 file changed

+3
-3
lines changed

showcases/data/Lambda/Activator - Hosted service/code.pure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function model::processData(data: String[1]): String[1]
1414
// Basic hosted service with UserList ownership
1515
HostedService model::BasicHostedService
1616
{
17-
pattern: 'api/greet/{name}';
17+
pattern: '/api/greet/{name}';
1818
ownership: UserList
1919
{
2020
users: [
@@ -30,7 +30,7 @@ HostedService model::BasicHostedService
3030
// Hosted service with Deployment ownership and stereotypes
3131
HostedService <<meta::pure::profiles::doc.doc>> {doc.doc = 'Example with deployment ownership'} model::DeploymentHostedService
3232
{
33-
pattern: 'api/process/{data}';
33+
pattern: '/api/process/{data}';
3434
ownership: Deployment
3535
{
3636
identifier: '12345'
@@ -43,7 +43,7 @@ HostedService <<meta::pure::profiles::doc.doc>> {doc.doc = 'Example with deploym
4343
// Hosted service with post-deployment actions
4444
HostedService model::AdvancedHostedService
4545
{
46-
pattern: 'api/advanced/{param}';
46+
pattern: '/api/advanced/{param}';
4747
ownership: UserList
4848
{
4949
users: [

0 commit comments

Comments
 (0)