Toggle navigation
Toggle navigation
This project
Loading...
Sign in
엄성진
/
learn-in-web-backend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sungjin
2021-11-22 00:43:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f637e9e4ad9388d4428b0d96387e98c3c9205363
f637e9e4
1 parent
bc1bcc9c
Add module exports
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
src/auth/auth.module.ts
src/main.ts
src/post/post.module.ts
src/runner/runner.module.ts
src/auth/auth.module.ts
View file @
f637e9e
...
...
@@ -2,11 +2,13 @@ import { Module } from '@nestjs/common';
import
{
AuthController
}
from
'./auth.controller'
;
import
{
PrismaModule
}
from
'nestjs-prisma'
;
import
{
AuthService
}
from
'./auth.service'
;
import
{
JwtModule
,
JwtService
}
from
'@nestjs/jwt'
;
import
{
JwtModule
}
from
'@nestjs/jwt'
;
import
{
RunnerService
}
from
'src/runner/runner.service'
;
@
Module
({
imports
:
[
PrismaModule
,
JwtModule
.
register
({
secret
:
'secret'
})],
controllers
:
[
AuthController
],
providers
:
[
AuthService
],
providers
:
[
AuthService
,
RunnerService
,
AuthService
],
exports
:
[
AuthService
],
})
export
class
AuthModule
{}
...
...
src/main.ts
View file @
f637e9e
...
...
@@ -3,6 +3,7 @@ import { AppModule } from './app.module';
async
function
bootstrap
()
{
const
app
=
await
NestFactory
.
create
(
AppModule
);
await
app
.
listen
(
3000
);
app
.
enableCors
();
await
app
.
listen
(
4000
);
}
bootstrap
();
...
...
src/post/post.module.ts
View file @
f637e9e
import
{
Module
}
from
'@nestjs/common'
;
import
{
PrismaModule
,
PrismaService
}
from
'nestjs-prisma'
;
import
{
AuthModule
}
from
'src/auth/auth.module'
;
import
{
PostController
}
from
'./post.controller'
;
import
{
PostService
}
from
'./post.service'
;
@
Module
({
imports
:
[
PrismaModule
],
imports
:
[
PrismaModule
,
AuthModule
],
controllers
:
[
PostController
],
providers
:
[
PostService
,
PrismaService
],
exports
:
[
PostService
],
})
export
class
PostModule
{}
...
...
src/runner/runner.module.ts
View file @
f637e9e
import
{
Module
}
from
'@nestjs/common'
;
import
{
PrismaModule
}
from
'nestjs-prisma
'
;
import
{
AuthModule
}
from
'src/auth/auth.module
'
;
import
{
RunnerController
}
from
'./runner.controller'
;
import
{
RunnerService
}
from
'./runner.service'
;
@
Module
({
imports
:
[
Prisma
Module
],
imports
:
[
Auth
Module
],
controllers
:
[
RunnerController
],
providers
:
[
RunnerService
],
exports
:
[
RunnerService
],
})
export
class
RunnerModule
{}
...
...
Please
register
or
login
to post a comment