Skip to content
Snippets Groups Projects
Verified Commit 44fd87fe authored by Alex ORLUC's avatar Alex ORLUC
Browse files

update config package.json

parent 8f9effff
No related branches found
No related tags found
No related merge requests found
......@@ -14,16 +14,16 @@
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/",
"index": "src/frontend/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"index": "./src/frontend/index.html",
"main": "./src/main.ts",
"polyfills": "./src/polyfills.ts",
"tsConfig": "./src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
"./src/favicon.ico",
"./src/assets"
],
"styles": [
"src/styles.styl"
"./src/styles.styl"
],
"scripts": [
"./node_modules/jquery/dist/jquery.min.js"
......@@ -33,8 +33,8 @@
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
"replace": "./src/environments/environment.ts",
"with": "./src/environments/environment.prod.ts"
}
],
"optimization": true,
......@@ -69,13 +69,13 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"main": "./src/test.ts",
"polyfills": "./src/polyfills.ts",
"tsConfig": "./src/tsconfig.spec.json",
"karmaConfig": "./src/karma.conf.js",
"styles": [
"src/styles.scss",
"node_modules/@fortawesome/fontawesome-free/css/all.min.css"
"./src/styles.styl",
"./node_modules/@fortawesome/fontawesome-free/css/all.min.css"
],
"scripts": [],
"assets": [
......@@ -88,8 +88,8 @@
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
"./src/tsconfig.app.json",
"./src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
......
<?php
......@@ -6,6 +6,7 @@
"ng": "ng",
"start": "ng serve --host 10.2.95.136",
"build": "ng build",
"build-watch": "ng build --watch",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
......
......@@ -24,8 +24,9 @@ require_once("src/core/lang/lang-{$language}.php");
$app = new \Slim\App(['settings' => ['displayErrorDetails' => true, 'determineRouteBeforeAppMiddleware' => true]]);
$GLOBALS['login'] = 'jjane';
//Authentication
$app->add(function (\Slim\Http\Request $request, \Slim\Http\Response $response, callable $next) {
/*$app->add(function (\Slim\Http\Request $request, \Slim\Http\Response $response, callable $next) {
$login = \SrcCore\controllers\AuthenticationController::authentication();
if (!empty($login)) {
......@@ -35,7 +36,7 @@ $app->add(function (\Slim\Http\Request $request, \Slim\Http\Response $response,
} else {
return $response->withStatus(401)->withJson(['errors' => 'Authentication Failed']);
}
});
});*/
//Attachments
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment