File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/kotlin/app/revanced/api/configuration/routes Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ internal fun Route.announcementsRoute() = route("announcements") {
94
94
95
95
post<APIAnnouncement > { announcement ->
96
96
announcementService.new(announcement)
97
+
98
+ call.respond(HttpStatusCode .OK )
97
99
}
98
100
99
101
route(" {id}" ) {
@@ -103,12 +105,16 @@ internal fun Route.announcementsRoute() = route("announcements") {
103
105
val id: Int by call.parameters
104
106
105
107
announcementService.update(id, announcement)
108
+
109
+ call.respond(HttpStatusCode .OK )
106
110
}
107
111
108
112
delete {
109
113
val id: Int by call.parameters
110
114
111
115
announcementService.delete(id)
116
+
117
+ call.respond(HttpStatusCode .OK )
112
118
}
113
119
114
120
route(" archive" ) {
@@ -119,6 +125,8 @@ internal fun Route.announcementsRoute() = route("announcements") {
119
125
val archivedAt = call.receiveNullable<APIAnnouncementArchivedAt >()?.archivedAt
120
126
121
127
announcementService.archive(id, archivedAt)
128
+
129
+ call.respond(HttpStatusCode .OK )
122
130
}
123
131
}
124
132
@@ -129,6 +137,8 @@ internal fun Route.announcementsRoute() = route("announcements") {
129
137
val id: Int by call.parameters
130
138
131
139
announcementService.unarchive(id)
140
+
141
+ call.respond(HttpStatusCode .OK )
132
142
}
133
143
}
134
144
}
You can’t perform that action at this time.
0 commit comments