File tree 5 files changed +8
-6
lines changed
5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ export class AccountComponent implements OnInit {
31
31
}
32
32
33
33
public logout ( ) {
34
- this . account . logout ( ) ;
34
+ this . account . logout ( ) ;
35
+ window . location . href = '/' ;
35
36
}
36
37
37
38
private getDefaultAvatar ( discriminator ) : string {
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ export interface IMessage {
2
2
authorUsername : string ;
3
3
authorAvatarId : string ;
4
4
createdAt : any ;
5
- content : string ;
5
+ contents : string ;
6
6
}
Original file line number Diff line number Diff line change 8
8
</ div >
9
9
</ div >
10
10
< div class ="card-body " style ="white-space:pre-wrap; ">
11
- {{news.content }}
11
+ {{ news.contents }}
12
12
</ div >
13
13
</ div >
14
14
</ div >
Original file line number Diff line number Diff line change 2
2
using System . Threading . Tasks ;
3
3
using Alderto . Services ;
4
4
using Alderto . Web . Models ;
5
+ using Microsoft . AspNetCore . Authorization ;
5
6
using Microsoft . AspNetCore . Mvc ;
6
7
7
8
namespace Alderto . Web . Controllers
@@ -15,7 +16,7 @@ public NewsController(INewsProvider news)
15
16
_news = news ;
16
17
}
17
18
18
- [ HttpGet ( "api/news" ) ]
19
+ [ HttpGet ( "api/news" ) , AllowAnonymous ]
19
20
public async Task < IActionResult > GetLatestNewsAsync ( int count = 10 )
20
21
{
21
22
if ( count > 100 )
Original file line number Diff line number Diff line change 28
28
{413603EA-D515-469A-B055-757528FEDDA8} .Debug| Any CPU .Build .0 = Debug| Any CPU
29
29
{413603EA-D515-469A-B055-757528FEDDA8} .Release| Any CPU .ActiveCfg = Release| Any CPU
30
30
{413603EA-D515-469A-B055-757528FEDDA8} .Release| Any CPU .Build .0 = Release| Any CPU
31
- {413603EA-D515-469A-B055-757528FEDDA8} .Testing| Any CPU .ActiveCfg = Testing |Any CPU
32
- {413603EA-D515-469A-B055-757528FEDDA8} .Testing| Any CPU .Build .0 = Testing |Any CPU
31
+ {413603EA-D515-469A-B055-757528FEDDA8} .Testing| Any CPU .ActiveCfg = Release |Any CPU
32
+ {413603EA-D515-469A-B055-757528FEDDA8} .Testing| Any CPU .Build .0 = Release |Any CPU
33
33
{13535E42-876C-42E9-88BB-27D291B47C19} .Debug| Any CPU .ActiveCfg = Debug| Any CPU
34
34
{13535E42-876C-42E9-88BB-27D291B47C19} .Debug| Any CPU .Build .0 = Debug| Any CPU
35
35
{13535E42-876C-42E9-88BB-27D291B47C19} .Release| Any CPU .ActiveCfg = Release| Any CPU
You can’t perform that action at this time.
0 commit comments