Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
shahriar
instagram-service
Commits
b0d76b3b
Commit
b0d76b3b
authored
Jul 29, 2021
by
velayat
Browse files
add cors middle ware
parent
0e207abf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main.ts
View file @
b0d76b3b
...
...
@@ -3,6 +3,12 @@ import { AppModule } from './app.module';
async
function
bootstrap
()
{
const
app
=
await
NestFactory
.
create
(
AppModule
);
app
.
enableCors
({
origin
:
'
*
'
,
methods
:
'
GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS
'
,
credentials
:
true
,
})
await
app
.
listen
(
4001
);
}
bootstrap
();
src/result.schema.ts
View file @
b0d76b3b
...
...
@@ -13,7 +13,7 @@ export class Result {
@
Prop
()
mentions_before
:
number
;
@
Prop
()
followed_before
:
number
;
...
...
@@ -28,7 +28,7 @@ export class Result {
@
Prop
()
mentions_before_users
:
Array
<
string
>
;
@
Prop
()
followed_before_users
:
Array
<
string
>
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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