-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(COM): incluye traslados especiales
- Loading branch information
plammel
authored and
sychus
committed
Feb 8, 2021
1 parent
c5ab22f
commit e669ee5
Showing
9 changed files
with
82 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { ReglasDerivacionRouter } from './reglasDerivacion.routes'; | ||
export { DerivacionesRouter } from './derivaciones.routes'; | ||
export { TipoTrasladoRouter } from './tipoTraslado.routes'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import * as mongoose from 'mongoose'; | ||
import { AuditPlugin } from '@andes/mongoose-plugin-audit'; | ||
|
||
export const TipoTrasladoSchema = new mongoose.Schema({ | ||
nombre: String | ||
}); | ||
|
||
TipoTrasladoSchema.plugin(AuditPlugin); | ||
export let TipoTraslado = mongoose.model('tipoTraslado', TipoTrasladoSchema, 'tipoTraslado'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { TipoTraslado } from './schemas/tipoTraslado.schema'; | ||
import { ResourceBase } from '@andes/core'; | ||
import { Auth } from '../../auth/auth.class'; | ||
|
||
class TipoTrasladoResource extends ResourceBase { | ||
Model = TipoTraslado; | ||
resourceName = 'tipoTraslado'; | ||
middlewares = [Auth.authenticate()]; | ||
} | ||
|
||
export const TipoTrasladoCtr = new TipoTrasladoResource({}); | ||
export const TipoTrasladoRouter = TipoTrasladoCtr.makeRoutes(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters