mirror of
https://github.com/revanced/revanced-api.git
synced 2025-05-02 15:44:33 +02:00
chore: Remove test
This commit is contained in:
parent
42f731854d
commit
1dba4923c8
@ -38,16 +38,6 @@ fun Application.configureRouting() {
|
|||||||
suspend fun PipelineContext<*, ApplicationCall>.channel(block: suspend (String) -> Unit) =
|
suspend fun PipelineContext<*, ApplicationCall>.channel(block: suspend (String) -> Unit) =
|
||||||
block(call.parameters["channel"]!!)
|
block(call.parameters["channel"]!!)
|
||||||
|
|
||||||
announcementService.new(
|
|
||||||
APIAnnouncement(
|
|
||||||
"author",
|
|
||||||
"title",
|
|
||||||
"content",
|
|
||||||
setOf("https://example.com"),
|
|
||||||
"channel",
|
|
||||||
LocalDateTime.now().toKotlinLocalDateTime(),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
route("/{channel}/latest") {
|
route("/{channel}/latest") {
|
||||||
get("/id") { channel { announcementId { latestId(it) } } }
|
get("/id") { channel { announcementId { latestId(it) } } }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user