-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.php
More file actions
51 lines (40 loc) · 1.44 KB
/
index.php
File metadata and controls
51 lines (40 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
header("Content-Type: application/json");
include 'inc.php';
include_once('./dte/boleta.php');
include_once('./dte/factura.php');
include_once('./dte/guiadespacho.php');
include_once('./dte/notadecredito.php');
include_once('./dte/libros.php');
include_once('./dte/sets.php');
include_once('./dte/multienvio.php');
use Slim\Factory\AppFactory;
use Slim\Routing\RouteCollectorProxy;
$app = AppFactory::create();
$app->addErrorMiddleware(true, false, false);
$app->addBodyParsingMiddleware();
$app->group("/dte", function (RouteCollectorProxy $group) {
global $dteEstado;
global $boletaEmitir;
global $facturaEmitir;
global $facturaEmitirExenta;
global $guiaDespachoEmitir;
global $notaDeCredito;
global $notaDeDebito;
global $libroGuiaDespacho;
global $libroCompraVenta;
global $setBasico;
global $multiEnvio;
$group->post("/estado", $dteEstado);
$group->post("/boleta/emitir", $boletaEmitir);
$group->post("/factura/emitir", $facturaEmitir);
$group->post("/factura/exenta/emitir", $facturaEmitirExenta);
$group->post("/guiadespacho/emitir", $guiaDespachoEmitir);
$group->post("/notadecredito", $notaDeCredito);
$group->post("/notadedebito", $notaDeDebito);
$group->post("/libroguiadedespacho", $libroGuiaDespacho);
$group->post("/librocompraventa", $libroCompraVenta);
$group->post("/setbasico", $setBasico);
$group->post("/multiEnvio", $multiEnvio);
});
$app->run();