Skip to content

Commit 0e67b45

Browse files
committed
First Release!! 1.0.0
1 parent 1ec048d commit 0e67b45

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
## <p align="center">Example API structure in PHP - MVC with Database Firebase for deployment in Vercel </p>
3-
<p align="center">
2+
## Example API structure in PHP - MVC with Database Firebase for deployment in Vercel </p>
3+
44
<a href="#php+firebase+vercel"><img src="public/header.png" alt="Hi!!"/></a>
55
</p>
66

@@ -23,7 +23,7 @@
2323
│ └── users
2424
2525

26-
## Dependencies
26+
## Dependencies/Require
2727
>Para produção, necessário para fazer conexão com Firebase
2828
- [Firebase Admin SDK for PHP](https://firebase-php.readthedocs.io/en/5.x/)
2929

.env.php renamed to env.php

File renamed without changes.

public/header.png

-181 Bytes
Loading

public/index.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,3 @@
1818
if(Auth::checkout()) $router->run( $router->routes );
1919

2020

21-
/* echo '<pre>';
22-
print_r($_ENV['JWT_SECRET_SIGNATURE']);
23-
echo '<pre>'; */

src/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Config {
1414
// - the name of this key has to be the same in the database Ex: user | username |id
1515
// - Nome da chave do dado do payload JWT que será verificada ao banco de dados,
1616
// - o nome dessa chave tem que ser a mesma no banco de dados Ex: user | username |id
17-
const PAYLOAD_TO_VALIDATE = 'github_username';
17+
const PAYLOAD_TO_VALIDATE = 'user';
1818

1919
const ERROR_CONTROLLER = 'ErrorController';
2020
const DEFAULT_ACTION = 'index';

0 commit comments

Comments
 (0)