Updated Flow of the code (markdown)

Finn 2016-09-05 16:11:52 +01:00
parent 98f6c3f401
commit 26b09e863f

@ -3,8 +3,8 @@ It should be noted that in all of the HTTP posts that at the end or in certain p
# App Start
The server is initialised and will connect to the database if the config is correct.
my $config = plugin Config => {file => 'myapp.conf'};
my $dbh = DBI->connect($config->{dsn},$config->{user},$config->{pass}) or die "Could not connect";
`my $config = plugin Config => {file => 'myapp.conf'};`
`my $dbh = DBI->connect($config->{dsn},$config->{user},$config->{pass}) or die "Could not connect";`
# Initial Token Registration
When the user is given the token, they then submit initially that token to the app. At first, the code receives the token in json format from an HTTP post to "/token".