Hopefully this doesnt look awful

This commit is contained in:
Marc 2016-04-05 23:47:08 +01:00
parent 569330b4c1
commit 342e9fb668

View File

@ -3,8 +3,14 @@
##Introduction
With the new WiFi Pineapple Interface, It is easy to create modules that use the new [API](api.md).
Modules use HTML, AngularJS and PHP to make requests and retrieve a response. The new interface and the modules also use Bootstrap.
// TODO: write better Introduction
##Anatomy of a basic module
A basic module will request information through AngularJS to PHP, and then PHP will provide a response to AngularJS, where it will then be displayed on the page.
A basic module will request information through AngularJS to PHP, and then the PHP will provide a response to AngularJS, where it will then be displayed on the HTML page for the user to see.
```
+-------------------+ +--------------+ +-----------+ +------+
| AngularJS Request | --> | PHP Response | --> | AngularJS | --> | HTML |
+-------------------+ +--------------+ +-----------+ +------+
```