summary refs log tree commit diff stats
path: root/svc/svc.go
diff options
context:
space:
mode:
authorBenjamin Morrison <ben@gbmor.dev>2021-10-21 21:41:44 -0400
committerGitHub <noreply@github.com>2021-10-21 21:41:44 -0400
commit57dfee62f097eed8f5e4a3429d7ea850ce07c570 (patch)
tree5ee99ab38e00c41190f82bef4b08a298c914f329 /svc/svc.go
parentd2cbd7b2dca8b981f886c490d0aed205f0530c31 (diff)
parentdd3d87bd97e41c77eea270812d338139fd87b9fc (diff)
downloadgetwtxt-57dfee62f097eed8f5e4a3429d7ea850ce07c570.tar.gz
Merge pull request #15 from getwtxt/delete-user
Delete user endpoint with admin pass
Diffstat (limited to 'svc/svc.go')
-rw-r--r--svc/svc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/svc/svc.go b/svc/svc.go
index 72ccdc3..10cf56a 100644
--- a/svc/svc.go
+++ b/svc/svc.go
@@ -91,6 +91,10 @@ func setIndexRouting(index *mux.Router) {
 }
 
 func setEndpointRouting(api *mux.Router) {
+	api.Path("/admin/users").
+		Methods("DELETE").
+		HandlerFunc(handleUserDelete)
+
 	// May add support for other formats later.
 	// Making this future-proof.
 	api.Path("/{format:(?:plain)}").
a> 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274