1
0
Fork 0
mirror of https://github.com/Luzifer/tex-api.git synced 2024-11-09 16:50:03 +00:00

Remove never implemented api docs

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-09-17 12:21:52 +02:00
parent 6048a58d28
commit cde16a2f2d
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -108,7 +108,6 @@ func init() {
} }
func main() { func main() {
router.HandleFunc("/", apiDocs).Methods("GET").Name("apiDocs")
router.HandleFunc("/job", startNewJob).Methods("POST").Name("startNewJob") router.HandleFunc("/job", startNewJob).Methods("POST").Name("startNewJob")
router.HandleFunc("/job/{uid:[0-9a-z-]{36}}", getJobStatus).Methods("GET").Name("getJobStatus") router.HandleFunc("/job/{uid:[0-9a-z-]{36}}", getJobStatus).Methods("GET").Name("getJobStatus")
router.HandleFunc("/job/{uid:[0-9a-z-]{36}}/wait", waitForJob).Methods("GET").Name("waitForJob") router.HandleFunc("/job/{uid:[0-9a-z-]{36}}/wait", waitForJob).Methods("GET").Name("waitForJob")
@ -128,10 +127,6 @@ func pathFromUUID(uid uuid.UUID, filename string) string {
return path.Join(cfg.StorageDir, uid.String(), filename) return path.Join(cfg.StorageDir, uid.String(), filename)
} }
func apiDocs(res http.ResponseWriter, r *http.Request) {
http.Error(res, "Not implemented yet", http.StatusInternalServerError)
}
func startNewJob(res http.ResponseWriter, r *http.Request) { func startNewJob(res http.ResponseWriter, r *http.Request) {
jobUUID := uuid.Must(uuid.NewV4()) jobUUID := uuid.Must(uuid.NewV4())
inputFile := pathFromUUID(jobUUID, filenameInput) inputFile := pathFromUUID(jobUUID, filenameInput)