aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/PersonalTimelineController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-11-17 23:04:21 +0800
committercrupest <crupest@outlook.com>2019-11-17 23:04:21 +0800
commit59c10650fc36e8c79c1def088240fd90a5151250 (patch)
tree46282455cd6bdf43bf2215d3918f5803b2a31674 /Timeline/Controllers/PersonalTimelineController.cs
parentc2b107eda8a14f836d663638641a3e3f17373b5d (diff)
downloadtimeline-59c10650fc36e8c79c1def088240fd90a5151250.tar.gz
timeline-59c10650fc36e8c79c1def088240fd90a5151250.tar.bz2
timeline-59c10650fc36e8c79c1def088240fd90a5151250.zip
Fix typo in path of personal timeline controller actions. Add timeline permission test.
Diffstat (limited to 'Timeline/Controllers/PersonalTimelineController.cs')
-rw-r--r--Timeline/Controllers/PersonalTimelineController.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Timeline/Controllers/PersonalTimelineController.cs b/Timeline/Controllers/PersonalTimelineController.cs
index af6a70f8..88f5ba00 100644
--- a/Timeline/Controllers/PersonalTimelineController.cs
+++ b/Timeline/Controllers/PersonalTimelineController.cs
@@ -87,7 +87,7 @@ namespace Timeline.Controllers
return await _service.GetPosts(username);
}
- [HttpPost("user/{username}/timeline/postop/create")]
+ [HttpPost("users/{username}/timeline/postop/create")]
[Authorize]
[CatchTimelineNotExistException]
public async Task<ActionResult<TimelinePostCreateResponse>> PostOperationCreate([FromRoute][Username] string username, [FromBody] TimelinePostCreateRequest body)
@@ -102,7 +102,7 @@ namespace Timeline.Controllers
return res;
}
- [HttpPost("user/{username}/timeline/postop/delete")]
+ [HttpPost("users/{username}/timeline/postop/delete")]
[Authorize]
[CatchTimelineNotExistException]
public async Task<ActionResult> PostOperationDelete([FromRoute][Username] string username, [FromBody] TimelinePostDeleteRequest body)
@@ -126,7 +126,7 @@ namespace Timeline.Controllers
return Ok();
}
- [HttpPost("user/{username}/timeline/op/property")]
+ [HttpPost("users/{username}/timeline/op/property")]
[Authorize]
[SelfOrAdmin]
[CatchTimelineNotExistException]
@@ -136,7 +136,7 @@ namespace Timeline.Controllers
return Ok();
}
- [HttpPost("user/{username}/timeline/op/member")]
+ [HttpPost("users/{username}/timeline/op/member")]
[Authorize]
[SelfOrAdmin]
[CatchTimelineNotExistException]