Update readme.md

This commit is contained in:
Nikiroy78 2022-10-30 23:34:19 +03:00 committed by GitHub
parent b76a8296a8
commit 35799245ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ mainserverObject.server(
});
```
Below you can see how responses from http/call-function hadless into reponse at scheme:
![simple scheme of njsbacker handling data an executing](https://sun9-78.userapi.com/impg/etOt-TcZ1KVxUnIm3laKJgAveXaMEOGfbGY0Wg/dIekdeOOKeo.jpg?size=649x353&quality=96&sign=958f40b23ab188ea03612bc98def05fe&type=album)
![simple scheme of njsbacker handling data an executing](https://sun9-78.userapi.com/impg/etOt-TcZ1KVxUnIm3laKJgAveXaMEOGfbGY0Wg/dIekdeOOKeo.jpg?size=649x353&quality=96&sign=958f40b23ab188ea03612bc98def05fe&type=album)
Http data or Data from call method gets into pre_execution binary function where checks data: syntax/missed or no: if all successfuly data get into Session/Group/Method execute method else throwing error.
### Before work.
Before work you must install this package:
@ -170,7 +170,7 @@ After creating class you must create object of njsbacker.Method:
var exampleMethod = new ExampleMethod('example', '/example', {
text : {
required : true,
type : backend.types.string,
type : njsbacker.types.string,
min_length : 1,
max_length : 255
}
@ -438,4 +438,4 @@ server.server('/api/v1').listen(8080, async (err) => {
}
});
```
You can show example code in file **codeExample.js**
You can show example code in file **codeExample.js**