Adding legacy API paths

This commit is contained in:
Caleb Gardner
2024-08-06 22:36:58 -05:00
parent bb44e26dd4
commit a9ca12395e
4 changed files with 23 additions and 5 deletions
+3
View File
@@ -56,6 +56,9 @@ func NewBackend(keyTable Table[ApiKey], apps ...App) (*Backend, error) {
if hasLog {
b.m.HandleFunc("POST /count", b.countLog)
b.m.HandleFunc("GET /count", b.getCount)
//TODO: Remove legacy paths
b.m.HandleFunc("POST /log", b.countLog)
}
if hasCrash {
b.m.HandleFunc("POST /crash", b.reportCrash)