Skip to content
This repository was archived by the owner on Apr 5, 2020. It is now read-only.

Add xp-forge/web adapter#21

Merged
thekid merged 5 commits intomasterfrom
feature/web-adapter
Nov 12, 2017
Merged

Add xp-forge/web adapter#21
thekid merged 5 commits intomasterfrom
feature/web-adapter

Conversation

@thekid
Copy link
Member

@thekid thekid commented Mar 4, 2017

This pull request adds an adapter class, scriptlet.Run, to run scriptlets in the new xp-forge/web API:

<?php namespace com\example\rest;

use scriptlet\Run;
use webservices\rest\srv\RestScriptlet;

class Api extends \web\Application {

  /** @return [:var] */
  public function routes() {
    return [
      '/' => new Run(new RestScriptlet('com.example.rest.api', '/'))
    ];
  }
}

@thekid thekid merged commit 619048c into master Nov 12, 2017
@thekid thekid deleted the feature/web-adapter branch November 12, 2017 15:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant