Added ability to specify port and RSS file as command line arguments

This commit is contained in:
2024-03-30 09:55:37 +01:00
parent 26988ecf6a
commit 6e3c4bf647
3 changed files with 15 additions and 3 deletions

View File

@@ -78,5 +78,5 @@ func main() {
mux.HandleFunc("POST /update-user/", view.UpdateUser(args, db, store))
mux.HandleFunc("POST /upload-image/", view.UploadImage(args))
log.Fatalln(http.ListenAndServe(":8080", mux))
log.Fatalln(http.ListenAndServe(args.Port, mux))
}