Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
node_template
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Владислав Цой
node_template
Commits
f7bfcab7
Commit
f7bfcab7
authored
Sep 12, 2023
by
Разиев Абдрашид
💬
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sorry
parent
04ff1da5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
app.ts
src/app.ts
+2
-0
No files found.
src/app.ts
View file @
f7bfcab7
...
...
@@ -3,6 +3,7 @@ import { Application, RequestHandler } from 'express';
import
{
AppInit
}
from
'./interfaces/AppInit.interface'
;
import
{
IRoute
}
from
'./interfaces/IRoute.interface'
;
console
.
log
(
1
)
class
App
{
public
app
:
Application
;
public
port
:
number
;
...
...
@@ -14,6 +15,7 @@ class App {
this
.
initMiddlewares
(
appInit
.
middlewares
);
this
.
initRoutes
(
appInit
.
controllers
);
}
private
initMiddlewares
(
middlewares
:
RequestHandler
[])
{
middlewares
.
forEach
((
middleware
)
=>
{
this
.
app
.
use
(
middleware
);
...
...
Разиев Абдрашид
💬
@Raziev_Abdrashid
mentioned in commit
ccaf091a
·
Sep 15, 2023
mentioned in commit
ccaf091a
mentioned in commit ccaf091af6957850c88f7d48f4fd217e9d4f6d09
Toggle commit list
Разиев Абдрашид
💬
@Raziev_Abdrashid
mentioned in merge request
!3 (closed)
·
Sep 15, 2023
mentioned in merge request
!3 (closed)
mentioned in merge request !3
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment