8 changed files with 147 additions and 14 deletions
-
22config/packages/nelmio_api_doc.yaml
-
45config/packages/security.yaml
-
43config/packages/sonata_admin.yaml
-
16config/packages/user.yaml
-
7config/routes.yaml
-
8config/routes/nelmio_api_doc.yaml
-
2config/services.yaml
-
18src/Controller/HomePageController.php
@ -1,9 +1,23 @@ |
|||||
nelmio_api_doc: |
nelmio_api_doc: |
||||
documentation: |
documentation: |
||||
|
# servers: |
||||
|
# - url: http://api.example.com/unsafe |
||||
|
# description: API over HTTP |
||||
|
# - url: https://api.example.com/secured |
||||
|
# description: API over HTTPS |
||||
info: |
info: |
||||
title: My App |
|
||||
description: This is an awesome app! |
|
||||
|
title: Api puertos Desytel |
||||
|
description: Definiciónd el API de puertos para aplicaciones moviles |
||||
version: 1.0.0 |
version: 1.0.0 |
||||
|
components: |
||||
|
securitySchemes: |
||||
|
Bearer: |
||||
|
type: http |
||||
|
scheme: bearer |
||||
|
bearerFormat: JWT |
||||
|
security: |
||||
|
- Bearer: [ ] |
||||
areas: # to filter documented areas |
areas: # to filter documented areas |
||||
path_patterns: |
|
||||
- ^/api(?!/doc$) # Accepts routes under /api except /api/doc |
|
||||
|
default: |
||||
|
path_patterns: |
||||
|
- ^/api(?!/doc$) # Accepts routes under /api except /api/doc |
||||
@ -0,0 +1,16 @@ |
|||||
|
pd_user: |
||||
|
user_class: App\Entity\User |
||||
|
#profile_class: App\Entity\Profile |
||||
|
group_class: App\Entity\Group |
||||
|
default_group: '' |
||||
|
login_redirect: 'home' |
||||
|
email_confirmation: true |
||||
|
welcome_email: true |
||||
|
user_registration: true |
||||
|
#template_path: '@Admin/Auth' |
||||
|
resetting_request_time: 7200 |
||||
|
mail_sender_address: 'example@example.com' |
||||
|
mail_sender_name: 'pdUser' |
||||
|
active_language: ['es', 'en'] |
||||
|
register_type: '' |
||||
|
resetting_type: '' |
||||
@ -1,3 +1,10 @@ |
|||||
#index: |
#index: |
||||
# path: / |
# path: / |
||||
# controller: App\Controller\DefaultController::index |
# controller: App\Controller\DefaultController::index |
||||
|
authorization: |
||||
|
resource: "@PdUserBundle/Resources/config/routing.yaml" |
||||
|
prefix: 'admin' |
||||
|
|
||||
|
#_welcome: |
||||
|
# path: / |
||||
|
# controller: App\Controller\HomePageController::homepage |
||||
@ -0,0 +1,18 @@ |
|||||
|
<?php |
||||
|
|
||||
|
|
||||
|
namespace App\Controller; |
||||
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
||||
|
use Symfony\Component\Routing\Annotation\Route; |
||||
|
use Symfony\Component\HttpFoundation\Response; |
||||
|
class HomePageController extends AbstractController |
||||
|
{ |
||||
|
/** |
||||
|
* @Route("/") |
||||
|
*/ |
||||
|
public function homepage(){ |
||||
|
return $this->render('base.html.twig'); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue